Optimized connection to db
This commit is contained in:
@ -22,6 +22,7 @@ class Ipify
|
||||
if (!isset($json->ip)) {
|
||||
throw new Exception('Missing `ip` in JSON response');
|
||||
}
|
||||
$this->logger->debug("Current IP: {$json->ip}");
|
||||
return $json->ip;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user