Revision 8df14984
Added by Ermal LUÇI over 14 years ago
usr/local/pkg/miniupnpd.inc | ||
---|---|---|
26 | 26 |
|
27 | 27 |
function upnp_uuid() { |
28 | 28 |
/* md5 hash of wan mac */ |
29 |
$uuid = md5(exec('arp -an -i '.get_real_interface().' | /usr/bin/cut -d " " -f4'));
|
|
29 |
$uuid = md5(get_interface_mac(get_real_interface("wan")));
|
|
30 | 30 |
/* put uuid in correct format 8-4-4-4-12 */ |
31 | 31 |
return substr($uuid,0,8).'-'.substr($uuid,9,4).'-'.substr($uuid,13,4).'-'.substr($uuid,17,4).'-'.substr($uuid,21,12); |
32 | 32 |
} |
Also available in: Unified diff
Correctly get only the interface mac address rather than any other found mac on this interface.