Merge pull request #1219 from NyxStudios/geoip-fix

Make GeoIP Great Again!
This commit is contained in:
White 2016-06-23 22:29:42 +09:30 committed by GitHub
commit 0e30335a7a
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);