[Update] Updates ServerList.cs with public IP API.
Updates ServerList.cs with public IP API.
This commit is contained in:
parent
d038571b41
commit
5f15f5bd8a
1 changed files with 2 additions and 2 deletions
|
|
@ -173,7 +173,7 @@ namespace Server.Misc
|
|||
private static IPAddress FindPublicAddress()
|
||||
{
|
||||
try {
|
||||
WebRequest req = HttpWebRequest.Create( "http://uo.cx/ip.php" );
|
||||
WebRequest req = HttpWebRequest.Create( "https://api.ipify.org" );
|
||||
|
||||
req.Timeout = 15000;
|
||||
|
||||
|
|
@ -195,4 +195,4 @@ namespace Server.Misc
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue