From b0d1849040b0ffcd39ceb598c07144e373217be1 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Tue, 25 Nov 2008 04:30:17 +0000 Subject: * Rename Copy my MAC address to Insert my local MAC address * Do not show Insert my local MAC address when no mac is detected --- usr/local/www/interfaces.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'usr/local/www/interfaces.php') diff --git a/usr/local/www/interfaces.php b/usr/local/www/interfaces.php index 39bc9cc..e9460f0 100755 --- a/usr/local/www/interfaces.php +++ b/usr/local/www/interfaces.php @@ -779,8 +779,10 @@ $types = array("none" => "None", "static" => "Static", "dhcp" => "DHCP", "pppoe" $ip = getenv('REMOTE_ADDR'); $mac = `/usr/sbin/arp -an | grep {$ip} | cut -d" " -f4`; $mac = str_replace("\n","",$mac); + if($mac): ?> - Copy my MAC address + Insert my local MAC address +
This field can be used to modify ("spoof") the MAC address of the WAN interface
-- cgit v1.1