reject ipv6 addresses for now
This commit is contained in:
parent
141ba5f77d
commit
062fe6c2a3
|
@ -87,6 +87,9 @@ class Sponge
|
||||||
raise
|
raise
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# reject ipv6 addresses
|
||||||
|
ips.reject!{|ip| ip.match(/:/) }
|
||||||
|
|
||||||
# pick a random one
|
# pick a random one
|
||||||
tip = ips[rand(ips.length)]
|
tip = ips[rand(ips.length)]
|
||||||
ip = IPAddr.new(tip)
|
ip = IPAddr.new(tip)
|
||||||
|
|
Loading…
Reference in a new issue