From eb147f2e7c9a312483bd1bcd768510c55039b0a2 Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Wed, 14 Nov 2012 17:40:49 +0000 Subject: Fixed testing of IPv6 adddressess to work. --- lib/custodian/multiping.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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 -- cgit v1.2.1