fix IpUtil unknow ip

main
wangqing 8 months ago
parent c960d70fc7
commit 476990c5ce

@ -33,6 +33,9 @@ public class IpUtil {
if (ipLocation.contains(INTERNAL_IP)) {
return INTERNAL_IP;
}
if (ipLocation.startsWith("0")){
return UNKNOW_IP;
}
return ipLocation.split("\\|")[0];
} catch (Exception e) {
return UNKNOW_IP;

@ -32,6 +32,9 @@ public class IpUtil {
if (ipLocation.contains(INTERNAL_IP)) {
return INTERNAL_IP;
}
if (ipLocation.startsWith("0")){
return UNKNOW_IP;
}
return ipLocation.split("\\|")[0];
} catch (Exception e) {
return UNKNOW_IP;

Loading…
Cancel
Save