Skip to content

Commit 69363d0

Browse files
committed
Fix GeoIP lookup
The HTTP to HTTPS redirect was causing issues.
1 parent 4712849 commit 69363d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fCraft/Commands/InfoCommands.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1847,7 +1847,7 @@ public static void GetGeoipInfo(PlayerInfo info) {
18471847

18481848
JsonObject result = null;
18491849
try {
1850-
string url = "http://geoip.pw/api/" + ip;
1850+
string url = "https://geoip.pw/api/" + ip;
18511851
result = JsonObject.Parse(HttpUtil.DownloadString(url, "get GeoIP info", 10000));
18521852
if (result.Get("message") != null) return;
18531853

0 commit comments

Comments
 (0)