upnp: do not throw when getting network interfaces.
This commit is contained in:
parent
525e6f21b7
commit
0791bad973
@ -323,7 +323,11 @@ UPNP.getInterfaceIP = function getInterfaceIP(name, family) {
|
||||
if (type !== family)
|
||||
continue;
|
||||
|
||||
ip = IP.toBuffer(details.address);
|
||||
try {
|
||||
ip = IP.toBuffer(details.address);
|
||||
} catch (e) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (IP.isLocal(ip))
|
||||
continue;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user