!31 IP查询导致异常问题

Merge pull request !31 from chasel_jc/master
This commit is contained in:
芋道源码 2023-04-02 04:51:35 +00:00 committed by Gitee
commit d965d5e30f
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -51,7 +51,7 @@ public class IPUtils {
*/ */
@SneakyThrows @SneakyThrows
public static Integer getAreaId(String ip) { public static Integer getAreaId(String ip) {
return Integer.parseInt(SEARCHER.search(ip)); return Integer.parseInt(SEARCHER.search(ip.trim()));
} }
/** /**