diff options
author | Ermal <eri@pfsense.org> | 2011-03-01 23:46:37 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2011-03-01 23:46:37 +0000 |
commit | 8df149847e1d2005b0369180d454d9f56364c7ac (patch) | |
tree | 03af55dbc2ec5dc9b1901a1bb95e49e8652fa2a8 | |
parent | 05c4bfa003a5013af31dcd3a59a20a682c93fb8f (diff) | |
download | pfsense-8df149847e1d2005b0369180d454d9f56364c7ac.zip pfsense-8df149847e1d2005b0369180d454d9f56364c7ac.tar.gz |
Correctly get only the interface mac address rather than any other found mac on this interface.
-rw-r--r-- | usr/local/pkg/miniupnpd.inc | 2 |
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); } |