diff options
author | jim-p <jimp@pfsense.org> | 2013-04-02 10:53:34 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2013-04-02 10:53:34 -0400 |
commit | c5e51011ab02527fb31c9bc3b0a13d0c1c1c7db9 (patch) | |
tree | 93eb1e8809bcfdf1a76424c43d1814327bc5bf8b /usr/local | |
parent | b4e98881bd3dd95fb387dd08917208b6a5fe371e (diff) | |
download | pfsense-c5e51011ab02527fb31c9bc3b0a13d0c1c1c7db9.zip pfsense-c5e51011ab02527fb31c9bc3b0a13d0c1c1c7db9.tar.gz |
Rename "Interface" to "Source Address" on ping page to more accurately reflect what it's actually used for.
Diffstat (limited to 'usr/local')
-rwxr-xr-x | usr/local/www/diag_ping.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/usr/local/www/diag_ping.php b/usr/local/www/diag_ping.php index 8e1255c..a29208c 100755 --- a/usr/local/www/diag_ping.php +++ b/usr/local/www/diag_ping.php @@ -69,7 +69,7 @@ if ($_POST || $_REQUEST['host']) { if (!$input_errors) { $do_ping = true; - $interface = $_REQUEST['interface']; + $sourceip = $_REQUEST['sourceip']; $count = $_POST['count']; if (preg_match('/[^0-9]/', $count) ) $count = DEFAULT_COUNT; @@ -107,9 +107,9 @@ include("head.inc"); ?> </td> </tr> <tr> - <td width="22%" valign="top" class="vncellreq"><?=gettext("Interface"); ?></td> + <td width="22%" valign="top" class="vncellreq"><?=gettext("Source Address"); ?></td> <td width="78%" class="vtable"> - <select name="interface" class="formselect"> + <select name="sourceip" class="formselect"> <option value="">Any</option> <?php $listenips = get_possible_listen_ips(); foreach (array('server', 'client') as $mode) { @@ -126,7 +126,7 @@ include("head.inc"); ?> } foreach ($listenips as $lip): $selected = ""; - if (!link_interface_to_bridge($lip['value']) && ($lip['value'] == $interface)) + if (!link_interface_to_bridge($lip['value']) && ($lip['value'] == $sourceip)) $selected = 'selected="selected"'; ?> <option value="<?=$lip['value'];?>" <?=$selected;?>> @@ -161,9 +161,9 @@ include("head.inc"); ?> $command = "/sbin/ping"; if ($ipproto == "ipv6") { $command .= "6"; - $ifaddr = get_interface_ipv6($interface); + $ifaddr = get_interface_ipv6($sourceip); } else { - $ifaddr = is_ipaddr($interface) ? $interface : get_interface_ip($interface); + $ifaddr = is_ipaddr($sourceip) ? $sourceip : get_interface_ip($sourceip); } if ($ifaddr && (is_ipaddr($host) || is_hostname($host))) $cmd = "{$command} -S$ifaddr -c$count " . escapeshellarg($host); |