UDPSocket does not work with IPv6?

Hi, I’ve a IPv6 address in my host.


UDPSocket.open do |s|
s.connect “2001:838:2:1::30:67”, 1
end

=> Errno::EAFNOSUPPORT: Address family not supported by protocol -
connect(2)
from (irb):25:in `connect’

How to use UDPSocket with an IPv6?

Thanks a lot.