Skip to content

Commit

Permalink
Merge pull request #21 from kamronbatman/patch-1
Browse files Browse the repository at this point in the history
[Update] Updates ServerList.cs with public IP API.
  • Loading branch information
msturgill committed Nov 19, 2016
2 parents d038571 + 5f15f5b commit 90d89d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Scripts/Misc/ServerList.cs
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ private static bool IsPrivateNetwork( IPAddress ip )
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;

Expand All @@ -195,4 +195,4 @@ private static IPAddress FindPublicAddress()
}
}
}
}
}

0 comments on commit 90d89d0

Please sign in to comment.