fix ip info
This commit is contained in:
@ -29,13 +29,9 @@ try {
|
||||
}
|
||||
|
||||
|
||||
$res = shell_exec('curl -s https://ifconfig.me');
|
||||
|
||||
$res = @json_decode($res, true);
|
||||
|
||||
if (!empty($res['ip'])) {
|
||||
$realIp = $res['ip'];
|
||||
$realIp = shell_exec('curl -s https://ifconfig.me');
|
||||
|
||||
if (!empty($realIp)) {
|
||||
if ($realIp !== $recordIp) {
|
||||
$msg = 'ip changed from ' . $recordIp . ' to ' . $realIp;
|
||||
|
||||
|
Reference in New Issue
Block a user