mirror of
https://github.com/UberGames/ioef.git
synced 2024-11-24 05:01:40 +00:00
Fix IPv6 favorites in q3_ui
This does however allow favorites to contain hostnames which was explicitly not allowed before.
This commit is contained in:
parent
81f92fe7f0
commit
75598f1a2b
2 changed files with 2 additions and 7 deletions
|
@ -82,8 +82,8 @@ void Favorites_Add( void )
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// use first empty or non-numeric available slot
|
// use first empty available slot
|
||||||
if ((adrstr[0] < '0' || adrstr[0] > '9' ) && !best)
|
if (!adrstr[0] && !best)
|
||||||
best = i+1;
|
best = i+1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -784,11 +784,6 @@ void ArenaServers_LoadFavorites( void )
|
||||||
if (!adrstr[0])
|
if (!adrstr[0])
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
// quick sanity check to avoid slow domain name resolving
|
|
||||||
// first character must be numeric
|
|
||||||
if (adrstr[0] < '0' || adrstr[0] > '9')
|
|
||||||
continue;
|
|
||||||
|
|
||||||
// favorite server addresses must be maintained outside refresh list
|
// favorite server addresses must be maintained outside refresh list
|
||||||
// this mimics local and global netadr's stored in client
|
// this mimics local and global netadr's stored in client
|
||||||
// these can be fetched to fill ping list
|
// these can be fetched to fill ping list
|
||||||
|
|
Loading…
Reference in a new issue