summaryrefslogtreecommitdiff
path: root/lib/custodian
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2012-11-14 17:40:49 +0000
committerSteve Kemp <steve@steve.org.uk>2012-11-14 17:40:49 +0000
commiteb147f2e7c9a312483bd1bcd768510c55039b0a2 (patch)
tree1134113932ced4b1157543f47da954c91183ca59 /lib/custodian
parent7d6b92ccf06dcc202ed344ec3068cda02165142a (diff)
Fixed testing of IPv6 adddressess to work.
Diffstat (limited to 'lib/custodian')
-rw-r--r--lib/custodian/multiping.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/custodian/multiping.rb b/lib/custodian/multiping.rb
index adb246e..64c3573 100644
--- a/lib/custodian/multiping.rb
+++ b/lib/custodian/multiping.rb
@@ -60,7 +60,7 @@ class MultiPing
# Does the hostname resolve to an IPv6 address?
#
def is_ipv6?
- if ( ( ! @resolved.nil? ) && ( @resolved =~ /^2001/ ) )
+ if ( ( ! @resolved.nil? ) && ( @resolved =~ /^([a-f0-9:]+)$/i ) )
true
else
false