Archived
0

Made Check use HTTPS when fetching IP address information.

This commit is contained in:
Logan Fick
2018-04-09 16:58:04 -04:00
parent 0e5ce46e95
commit 5e2c98d749

View File

@@ -35,7 +35,7 @@ import com.redstoner.modules.Module;
import net.nemez.chatapi.click.Message;
@Version(major = 4, minor = 0, revision = 2, compatible = 4)
@Version(major = 4, minor = 0, revision = 3, compatible = 4)
public class Check implements Module, Listener
{
MysqlTable table;
@@ -122,7 +122,7 @@ public class Check implements Module, Listener
}
try
{
URL ipinfo = new URL("http://ipinfo.io/" + ip + "/json");
URL ipinfo = new URL("https://ipinfo.io/" + ip + "/json");
String rawJson = read(ipinfo);
return (JSONObject) new JSONParser().parse(rawJson);
}