mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-08-20 13:24:09 -07:00
More netcon stuff, and Phy build fix.
This commit is contained in:
parent
4626175d11
commit
dfb08ec753
3 changed files with 78 additions and 1 deletions
|
@ -58,6 +58,7 @@
|
|||
#include <sys/types.h>
|
||||
#include <sys/select.h>
|
||||
#include <sys/socket.h>
|
||||
#include <sys/un.h>
|
||||
#include <arpa/inet.h>
|
||||
#include <netinet/in.h>
|
||||
#include <netinet/tcp.h>
|
||||
|
@ -919,6 +920,11 @@ public:
|
|||
|
||||
ZT_PHY_CLOSE_SOCKET(sws.sock);
|
||||
|
||||
#ifdef __UNIX_LIKE__
|
||||
if (sws.type == ZT_PHY_SOCKET_UNIX_LISTEN)
|
||||
::unlink(((struct sockaddr_un *)(&(sws.saddr)))->sun_path);
|
||||
#endif // __UNIX_LIKE__
|
||||
|
||||
if (callHandlers) {
|
||||
switch(sws.type) {
|
||||
case ZT_PHY_SOCKET_TCP_OUT_PENDING:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue