mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
IPV6 fix by east
This commit is contained in:
parent
da68023f7a
commit
77c1442499
|
@ -942,7 +942,9 @@ int net_addr_from_str(NETADDR *addr, const char *string)
|
|||
return -1;
|
||||
}
|
||||
#else
|
||||
if(inet_pton(AF_INET6, buf, &sa6) != 1)
|
||||
sa6.sin6_family = AF_INET6;
|
||||
|
||||
if(inet_pton(AF_INET6, buf, &sa6.sin6_addr) != 1)
|
||||
return -1;
|
||||
#endif
|
||||
sockaddr_to_netaddr((struct sockaddr *)&sa6, addr);
|
||||
|
|
Loading…
Reference in a new issue