diff options
Diffstat (limited to 'routers/quagga.php')
-rw-r--r-- | routers/quagga.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/routers/quagga.php b/routers/quagga.php index 3dea33b..f78bdec 100644 --- a/routers/quagga.php +++ b/routers/quagga.php @@ -40,7 +40,7 @@ final class Quagga extends Router { } else if (match_ipv6($destination)) { $ping = 'ping6 -A -c 10 '.$destination; } else { - throw new Exception('The parameter is not an IPv4/IPv6 address or a FQDN.'); + throw new Exception('The parameter does not resolve to an IPv4/IPv6 address.'); } if (($ping != null) && $this->has_source_interface_id()) { @@ -69,11 +69,11 @@ final class Quagga extends Router { } if (match_ipv4($destination)) { - $traceroute = 'traceroute -4 -A -q1 -N32 -w1 -m15 '.$destination; + $traceroute = 'traceroute -4 -A -q1 -N32 -w1 -m15 '.$fqdn; } else if (match_ipv6($destination)) { - $traceroute = 'traceroute -6 -A -q1 -N32 -w1 -m15 '.$destination; + $traceroute = 'traceroute -6 -A -q1 -N32 -w1 -m15 '.$fqdn; } else { - throw new Exception('The parameter is not an IPv4/IPv6 address or a FQDN.'); + throw new Exception('The parameter does not resolve to an IPv4/IPv6 address.'); } if (($traceroute != null) && $this->has_source_interface_id()) { |