浏览代码

Increase ifname size to accomodate Windows (issue #1560)

Joseph Henry 3 年之前
父节点
当前提交
c5008031b9
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      osdep/Phy.hpp

+ 1 - 1
osdep/Phy.hpp

@@ -145,7 +145,7 @@ private:
 		ZT_PHY_SOCKFD_TYPE sock;
 		ZT_PHY_SOCKFD_TYPE sock;
 		void *uptr; // user-settable pointer
 		void *uptr; // user-settable pointer
 		ZT_PHY_SOCKADDR_STORAGE_TYPE saddr; // remote for TCP_OUT and TCP_IN, local for TCP_LISTEN, RAW, and UDP
 		ZT_PHY_SOCKADDR_STORAGE_TYPE saddr; // remote for TCP_OUT and TCP_IN, local for TCP_LISTEN, RAW, and UDP
-		char ifname[32];
+		char ifname[256 + 4];
 	};
 	};
 
 
 	std::list<PhySocketImpl> _socks;
 	std::list<PhySocketImpl> _socks;