diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Smokeping/probes/FPing.pm | 2 | ||||
-rw-r--r-- | lib/Smokeping/probes/FPing6.pm | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/Smokeping/probes/FPing.pm b/lib/Smokeping/probes/FPing.pm index 0e62576..5c6f612 100644 --- a/lib/Smokeping/probes/FPing.pm +++ b/lib/Smokeping/probes/FPing.pm @@ -196,7 +196,7 @@ The minimum amount of time between sending a ping packet to any target. DOC }, sourceaddress => { - _re => '(?:25[0-5]|2[0-4]\d|[0-1]?\d?\d)(?:\.(?:25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}', + _re => '\d+(\.\d+){3}', _example => '192.168.0.1', _doc => <<DOC, The fping "-S" parameter . From fping(1): diff --git a/lib/Smokeping/probes/FPing6.pm b/lib/Smokeping/probes/FPing6.pm index aa3af46..308d4ff 100644 --- a/lib/Smokeping/probes/FPing6.pm +++ b/lib/Smokeping/probes/FPing6.pm @@ -46,7 +46,7 @@ sub probevars { my $self = shift; my $h = $self->SUPER::probevars; $h->{binary}{_example} = "/usr/bin/fping6"; - $h->{sourceaddress}{_re} = "(?:(?:(?:(?:[0-9A-Fa-f]{1,4}(?::[0-9A-Fa-f]{1,4})*)?)::(?:(?:[0-9A-Fa-f]{1,4}(?::[0-9A-Fa-f]{1,4})*)?))|(?:(?:(?:[0-9A-Fa-f]{1,4}:){6,6})(?:25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)){3})|(?:(?:(?:[0-9A-Fa-f]{1,4}(?::[0-9A-Fa-f]{1,4})*)?)::(?:(?:[0-9A-Fa-f]{1,4}:)*)(?:25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)){3}))"; + $h->{sourceaddress}{_re} = "[0-9A-Fa-f:.]+"; return $h; } |