From 6a010e82c7715a59166289d7fc9a6f5d0eba533a Mon Sep 17 00:00:00 2001 From: Lingxiao108105 <71265122+Lingxiao108105@users.noreply.github.com> Date: Wed, 20 Oct 2021 00:46:11 +1100 Subject: [PATCH] Update IpUtil.java --- src/main/java/tech/crm/crmserver/common/utils/IpUtil.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/tech/crm/crmserver/common/utils/IpUtil.java b/src/main/java/tech/crm/crmserver/common/utils/IpUtil.java index 07adb2d..ae9b040 100644 --- a/src/main/java/tech/crm/crmserver/common/utils/IpUtil.java +++ b/src/main/java/tech/crm/crmserver/common/utils/IpUtil.java @@ -119,7 +119,7 @@ public static IpAddress sendPostRequest(String ip){ HttpEntity> requestEntity = new HttpEntity<>(null, headers); - ResponseEntity response = client.exchange(URL, method, requestEntity, IpAddress.class); + ResponseEntity response = client.exchange(url, method, requestEntity, IpAddress.class); if(response.getStatusCode() != HttpStatus.OK){ return null; }