Make GeoIP Great Again!

This commit is contained in:
Enerdy 2016-06-19 14:02:36 +01:00
parent be4164281a
commit 13977d9e53
3 changed files with 6 additions and 1 deletions

View file

@ -292,7 +292,7 @@ namespace TShockAPI
RestManager = new RestManager(RestApi);
RestManager.RegisterRestfulCommands();
var geoippath = Path.Combine(SavePath, "GeoIP.dat");
var geoippath = "GeoIP.dat";
if (Config.EnableGeoIP && File.Exists(geoippath))
Geo = new GeoIPCountry(geoippath);