mirror of
https://github.com/UberGames/lilium-voyager.git
synced 2024-12-13 21:51:09 +00:00
Fix resolving IPv6 favorites in Team Arena UI
This commit is contained in:
parent
2b7bf5b37e
commit
7b34987823
1 changed files with 2 additions and 2 deletions
|
@ -146,7 +146,7 @@ static int LAN_AddServer(int source, const char *name, const char *address) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (servers && *count < max) {
|
if (servers && *count < max) {
|
||||||
NET_StringToAdr( address, &adr, NA_IP );
|
NET_StringToAdr( address, &adr, NA_UNSPEC );
|
||||||
for ( i = 0; i < *count; i++ ) {
|
for ( i = 0; i < *count; i++ ) {
|
||||||
if (NET_CompareAdr(servers[i].adr, adr)) {
|
if (NET_CompareAdr(servers[i].adr, adr)) {
|
||||||
break;
|
break;
|
||||||
|
@ -190,7 +190,7 @@ static void LAN_RemoveServer(int source, const char *addr) {
|
||||||
}
|
}
|
||||||
if (servers) {
|
if (servers) {
|
||||||
netadr_t comp;
|
netadr_t comp;
|
||||||
NET_StringToAdr( addr, &comp, NA_IP );
|
NET_StringToAdr( addr, &comp, NA_UNSPEC );
|
||||||
for (i = 0; i < *count; i++) {
|
for (i = 0; i < *count; i++) {
|
||||||
if (NET_CompareAdr( comp, servers[i].adr)) {
|
if (NET_CompareAdr( comp, servers[i].adr)) {
|
||||||
int j = i;
|
int j = i;
|
||||||
|
|
Loading…
Reference in a new issue