Skip to content

Commit 0cfb131

Browse files
committed
proxy_type is optional
1 parent 57710a1 commit 0cfb131

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/io/ipgeolocation/api/GeolocationSecurity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public class GeolocationSecurity {
2727
this.threatScore = json.getInt("threat_score");
2828
this.tor = json.getBoolean("is_tor");
2929
this.proxy = json.getBoolean("is_proxy");
30-
this.proxyType = json.getString("proxy_type");
30+
this.proxyType = json.optString("proxy_type");
3131
this.anonymous = json.getBoolean("is_anonymous");
3232
this.knownAttacker = json.getBoolean("is_known_attacker");
3333
this.bot = json.getBoolean("is_bot");

0 commit comments

Comments
 (0)