diff options
author | Steve Kemp <steve@steve.org.uk> | 2012-11-14 17:40:49 +0000 |
---|---|---|
committer | Steve Kemp <steve@steve.org.uk> | 2012-11-14 17:40:49 +0000 |
commit | cdb01589aa905190b8bac4411a3825ee3eda62fb (patch) | |
tree | 1134113932ced4b1157543f47da954c91183ca59 | |
parent | 4b3abea480a7cc5e3ff559ba5987ecdbafbe1c82 (diff) |
Fixed testing of IPv6 adddressess to work.
-rw-r--r-- | lib/custodian/multiping.rb | 2 |
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 |