Show External IP

This commit is contained in:
Shoghi Cervantes Pueyo
2013-01-11 15:08:02 +01:00
parent ab2b519c2e
commit 2665dffdd8
2 changed files with 20 additions and 2 deletions

View File

@@ -102,6 +102,9 @@ class ServerAPI{
console("[INFO] [UPnP] Trying to port forward...");
UPnP_PortForward($this->getProperty("port"));
}
if(($ip = Utils::getIP()) !== false){
console("[INFO] External IP: ".$ip);
}
if($this->getProperty("last-update") === false or ($this->getProperty("last-update") + 3600) < time()){
console("[INFO] Checking for new server version");
console("[INFO] Last check: ".date("Y-m-d H:i:s", $this->getProperty("last-update")));