Small improvement

This commit is contained in:
M66B 2020-06-30 11:50:28 +02:00
parent 4ffed65da3
commit fff18b063b
1 changed files with 1 additions and 0 deletions

View File

@ -72,6 +72,7 @@ public class IPInfo {
HttpsURLConnection connection = (HttpsURLConnection) url.openConnection();
connection.setRequestMethod("GET");
connection.setReadTimeout(FETCH_TIMEOUT);
connection.setConnectTimeout(FETCH_TIMEOUT);
connection.connect();
Organization organization = new Organization();