mirror of
https://github.com/shavitush/bhoptimer.git
synced 2025-12-07 10:28:26 +00:00
Mark Steam Datagram Relay IPs
This commit is contained in:
parent
3d0cd96319
commit
983a3c8e74
@ -998,7 +998,11 @@ public void OpenStatsMenuCallback(Database db, DBResultSet results, const char[]
|
|||||||
char sIPAddress[32];
|
char sIPAddress[32];
|
||||||
IPAddressToString(iIPAddress, sIPAddress, 32);
|
IPAddressToString(iIPAddress, sIPAddress, 32);
|
||||||
|
|
||||||
if (!GeoipCountry(sIPAddress, sCountry, 64))
|
if ((iIPAddress & 0xFFFF0000) == 0xA9F40000) // 169.254.x.x
|
||||||
|
{
|
||||||
|
sCountry = "Steam Datagram Relay";
|
||||||
|
}
|
||||||
|
else if (!GeoipCountry(sIPAddress, sCountry, 64))
|
||||||
{
|
{
|
||||||
sCountry = "Local Area Network";
|
sCountry = "Local Area Network";
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user