|
|
|
@ -16,14 +16,15 @@ public class RealIPService { |
|
|
|
} |
|
|
|
|
|
|
|
public String getIP() { |
|
|
|
if (Instant.now().getEpochSecond() - lst_update < 300) |
|
|
|
/*if (Instant.now().getEpochSecond() - lst_update < 300) |
|
|
|
return lst_ip; |
|
|
|
|
|
|
|
try { |
|
|
|
HashMap response = restTemplate.getForEntity("https://ifconfig.co/json", HashMap.class).getBody(); |
|
|
|
lst_ip = (String) response.getOrDefault("ip", ""); |
|
|
|
} catch (Exception e) {} |
|
|
|
return lst_ip; |
|
|
|
return lst_ip;*/ |
|
|
|
return "tf2.pblr-nyk.pro"; |
|
|
|
} |
|
|
|
|
|
|
|
public String genIPWithPort(Integer port) { |
|
|
|
|