在IpUtils里修复ip空字符串引起的异常问题
This commit is contained in:
Chasel
2023-03-30 14:42:18 +08:00
parent e618f8e404
commit cdc52f32ea
2 changed files with 2 additions and 2 deletions

View File

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