From 3c6dd9352b4c7563cb3eea96d9191dd8d29c20a8 Mon Sep 17 00:00:00 2001 From: ByteExceptionM Date: Wed, 21 Aug 2024 18:22:42 +0200 Subject: [PATCH] fix: Fix api key usage of IPApiIsFilterService Signed-off-by: ByteExceptionM --- .../networkfilter/common/filter/types/IPApiIsFilterService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/java/ls/ni/networkfilter/common/filter/types/IPApiIsFilterService.java b/common/src/main/java/ls/ni/networkfilter/common/filter/types/IPApiIsFilterService.java index da2b3f8..d1522d5 100644 --- a/common/src/main/java/ls/ni/networkfilter/common/filter/types/IPApiIsFilterService.java +++ b/common/src/main/java/ls/ni/networkfilter/common/filter/types/IPApiIsFilterService.java @@ -34,7 +34,7 @@ public IPApiIsFilterService(@Nullable String apiKey, @NotNull Set checkT @Override public @NotNull FilterResult check(@NotNull String ip) { - HttpResponse response = Unirest.get("https://api.ipapi.is?q=" + ip + (this.apiKey != null ? "&api=" + this.apiKey : "")) + HttpResponse response = Unirest.get("https://api.ipapi.is?q=" + ip + (this.apiKey != null ? "&key=" + this.apiKey : "")) .asJson(); if (!response.isSuccess()) {