mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2024-12-19 13:07:55 +00:00
Attempted fix for github issue #597, leaking sockets. Added call to closenatpmp() after failure to init
This commit is contained in:
parent
0fb22df633
commit
f18d5b2efe
@ -123,6 +123,7 @@ public:
|
|||||||
|
|
||||||
if (initnatpmp(&natpmp,0,0) != 0) {
|
if (initnatpmp(&natpmp,0,0) != 0) {
|
||||||
mode = 1;
|
mode = 1;
|
||||||
|
closenatpmp(&natpmp);
|
||||||
#ifdef ZT_PORTMAPPER_TRACE
|
#ifdef ZT_PORTMAPPER_TRACE
|
||||||
PM_TRACE("PortMapper: NAT-PMP: init failed, switching to UPnP mode" ZT_EOL_S);
|
PM_TRACE("PortMapper: NAT-PMP: init failed, switching to UPnP mode" ZT_EOL_S);
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user