mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 22:48:18 +00:00
commit
2c73819a15
|
@ -781,7 +781,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