Update Network.h

Missing argument check lead to wrong value of IsIPv6 of struct UDP_ACCEL in NewUdpAccel(),  eventually lead to UdpAccelInitClient() fail.
This commit is contained in:
updatede authored and GitHub committed 2021-12-22 13:19:50 +08:00
1 parent 918fedb9d4
commit 0b74a8e4ce
1 file changed
+1 -1
+1 -1
View File
@@ -87,7 +87,7 @@ struct IP
#define CmpIpAddr(ip1, ip2) (Cmp((ip1)->address, (ip2)->address, sizeof((ip1)->address)))
#define IsIP6(ip) (IsIP4(ip) == false)
#define IsIP6(ip) (ip && IsIP4(ip) == false)
#define IsZeroIp(ip) (IsZeroIP(ip))
// IPv6 address (different format)