From a29be6d64c5b453022367f24413ddfe9a80c576b Mon Sep 17 00:00:00 2001 From: Mark Sturgill Date: Thu, 3 Apr 2014 03:24:42 -0700 Subject: [PATCH] switch ip autodetection to azure, no ssl for MONO because of cert dep --- Scripts/Misc/ServerList.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Scripts/Misc/ServerList.cs b/Scripts/Misc/ServerList.cs index 4be603766..a98d7164d 100644 --- a/Scripts/Misc/ServerList.cs +++ b/Scripts/Misc/ServerList.cs @@ -170,7 +170,11 @@ namespace Server.Misc private static IPAddress FindPublicAddress() { try { - WebRequest req = HttpWebRequest.Create( "https://uo.cx/ip.php" ); +#if MONO + WebRequest req = HttpWebRequest.Create( "http://req.azurewebsites.net/ip.aspx" ); +#else + WebRequest req = HttpWebRequest.Create( "https://req.azurewebsites.net/ip.aspx" ); +#endif req.Timeout = 15000; WebResponse res = req.GetResponse();