Browse Source

Merge branch 'dev' of http://git.int.zerotier.com/zerotier/ZeroTierOne into dev

Adam Ierymenko 6 years ago
parent
commit
f0295b154b
1 changed files with 3 additions and 1 deletions
  1. 3 1
      node/Path.hpp

+ 3 - 1
node/Path.hpp

@@ -158,7 +158,9 @@ public:
 	{
 		memset(_ifname, 0, 16);
 		memset(_addrString, 0, sizeof(_addrString));
-		_phy->getIfName((PhySocket *)((uintptr_t)_localSocket), _ifname, 16);
+		if (_localSocket != -1) {
+			_phy->getIfName((PhySocket *) ((uintptr_t) _localSocket), _ifname, 16);
+		}
 	}
 
 	/**