summaryrefslogtreecommitdiff
path: root/lib/custodian/multiping.rb
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
commitcdb01589aa905190b8bac4411a3825ee3eda62fb (patch)
tree1134113932ced4b1157543f47da954c91183ca59 /lib/custodian/multiping.rb
parent4b3abea480a7cc5e3ff559ba5987ecdbafbe1c82 (diff)
Fixed testing of IPv6 adddressess to work.
Diffstat (limited to 'lib/custodian/multiping.rb')
-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