summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2011-03-01 23:46:37 +0000
committerErmal <eri@pfsense.org>2011-03-01 23:46:37 +0000
commit8df149847e1d2005b0369180d454d9f56364c7ac (patch)
tree03af55dbc2ec5dc9b1901a1bb95e49e8652fa2a8 /usr/local
parent05c4bfa003a5013af31dcd3a59a20a682c93fb8f (diff)
downloadpfsense-8df149847e1d2005b0369180d454d9f56364c7ac.zip
pfsense-8df149847e1d2005b0369180d454d9f56364c7ac.tar.gz
Correctly get only the interface mac address rather than any other found mac on this interface.
Diffstat (limited to 'usr/local')
-rw-r--r--usr/local/pkg/miniupnpd.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/pkg/miniupnpd.inc b/usr/local/pkg/miniupnpd.inc
index 2da8c93..3dcc953 100644
--- a/usr/local/pkg/miniupnpd.inc
+++ b/usr/local/pkg/miniupnpd.inc
@@ -26,7 +26,7 @@
function upnp_uuid() {
/* md5 hash of wan mac */
- $uuid = md5(exec('arp -an -i '.get_real_interface().' | /usr/bin/cut -d " " -f4'));
+ $uuid = md5(get_interface_mac(get_real_interface("wan")));
/* put uuid in correct format 8-4-4-4-12 */
return substr($uuid,0,8).'-'.substr($uuid,9,4).'-'.substr($uuid,13,4).'-'.substr($uuid,17,4).'-'.substr($uuid,21,12);
}
OpenPOWER on IntegriCloud