summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Mazoyer <respawneral@gmail.com>2015-01-13 22:16:17 +0100
committerGuillaume Mazoyer <respawneral@gmail.com>2015-01-13 22:16:17 +0100
commit96c976dfdaeebf3b682a77091cc1b2bec7563bb1 (patch)
tree0671ebd9c9e8101a22a3254d2949e6f292a2e22f
parentf6c2a0040136a56ffda474575d5be0a6b1137489 (diff)
FQDN are usable for ping and traceroute.
-rw-r--r--includes/config.defaults.php4
-rw-r--r--index.php4
2 files changed, 4 insertions, 4 deletions
diff --git a/includes/config.defaults.php b/includes/config.defaults.php
index 2bd9dfa..1bd9a6d 100644
--- a/includes/config.defaults.php
+++ b/includes/config.defaults.php
@@ -96,13 +96,13 @@ $config = array(
),
// Documentation for the 'ping' query
'ping' => array(
- 'command' => 'ping IP_ADDRESS',
+ 'command' => 'ping IP_ADDRESS|FQDN',
'description' => 'Send 10 pings to the given destination.',
'parameter' => 'The parameter must be an IPv4/IPv6 address (without mask) or a fully qualified domain name.<br />RFC1918 addresses, IPv6 starting with FD or FC, and IPv4 reserved ranges (0.0.0.0/8, 169.254.0.0/16, 192.0.2.0/24 and 224.0.0.0/4) may be refused.<br /><br />Example of valid arguments:<br /><ul><li>8.8.8.8</li><li>2001:db8:1337::42</li><li>example.com</li></ul>'
),
// Documentation for the 'traceroute' query
'traceroute' => array(
- 'command' =>'traceroute IP_ADDRESS',
+ 'command' =>'traceroute IP_ADDRESS|FQDN',
'description' => 'Display the path to a given destination.',
'parameter' => 'The parameter must be an IPv4/IPv6 address (without mask) or a fully qualified domain name.<br />RFC1918 addresses, IPv6 starting with FD or FC, and IPv4 reserved ranges (0.0.0.0/8, 169.254.0.0/16, 192.0.2.0/24 and 224.0.0.0/4) may be refused.<br /><br />Example of valid arguments:<br /><ul><li>8.8.8.8</li><li>2001:db8:1337::42</li><li>example.com</li></ul>'
)
diff --git a/index.php b/index.php
index e7c045b..e1fbdb6 100644
--- a/index.php
+++ b/index.php
@@ -65,8 +65,8 @@ final class LookingGlass {
print('<option value="bgp" selected="selected">show route IP_ADDRESS</option>');
print('<option value="as-path-regex">show route as-path-regex AS_PATH_REGEX</option>');
print('<option value="as">show route AS</option>');
- print('<option value="ping">ping IP_ADDRESS</option>');
- print('<option value="traceroute">traceroute IP_ADDRESS</option>');
+ print('<option value="ping">ping IP_ADDRESS|FQDN</option>');
+ print('<option value="traceroute">traceroute IP_ADDRESS|FQDN</option>');
print('</select>');
print('</div>');
}