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