mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
parent
def92ab029
commit
f91af5c93a
|
@ -1242,8 +1242,6 @@ int32_t net_getipport(const char* node, IP_Port** res, int type)
|
|||
|
||||
IP_Port *ip_port = *res;
|
||||
for (cur = infos; cur != NULL; cur = cur->ai_next) {
|
||||
ip_port->ip.family = cur->ai_family;
|
||||
|
||||
if (cur->ai_socktype && type > 0 && cur->ai_socktype != type) {
|
||||
continue;
|
||||
}
|
||||
|
@ -1258,6 +1256,8 @@ int32_t net_getipport(const char* node, IP_Port** res, int type)
|
|||
continue;
|
||||
}
|
||||
|
||||
ip_port->ip.family = cur->ai_family;
|
||||
|
||||
ip_port++;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user