mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-01-02 19:26:41 +00:00
Fix FD leak on MacOS.
This commit is contained in:
parent
c890f1762a
commit
0e798222a7
@ -336,6 +336,7 @@ class Binder {
|
|||||||
|
|
||||||
// if this is a temporary IPv6 address, skip to the next address
|
// if this is a temporary IPv6 address, skip to the next address
|
||||||
if (flags & IN6_IFF_TEMPORARY) {
|
if (flags & IN6_IFF_TEMPORARY) {
|
||||||
|
close(infoSock);
|
||||||
char buf[64];
|
char buf[64];
|
||||||
#ifdef ZT_TRACE
|
#ifdef ZT_TRACE
|
||||||
fprintf(stderr, "skip binding to temporary IPv6 address: %s\n", ip.toIpString(buf));
|
fprintf(stderr, "skip binding to temporary IPv6 address: %s\n", ip.toIpString(buf));
|
||||||
|
Loading…
Reference in New Issue
Block a user