Fix Communication Manager

This commit is contained in:
Beu
2022-03-03 20:04:02 +01:00
parent a4594122dc
commit b88bddb76b
2 changed files with 9 additions and 2 deletions

View File

@ -296,9 +296,9 @@ class CommunicationManager implements CallbackListener, UsageInformationAble {
});
});
//TODO check if port is closed
$this->socket->listen($socketPort, $this->maniaControl->getServer()->ip);
$this->socket->listen($socketPort, $socketHost);
Logger::log("[CommunicationManager] Socket " . $this->maniaControl->getServer()->ip . ":" . $this->socket->getPort() . " Successfully created!");
Logger::log("[CommunicationManager] Socket " . $this->socket->getHost() . ":" . $this->socket->getPort() . " Successfully created!");
} catch (ConnectionException $e) {
Logger::log("[CommunicationManager] Exception: " . $e->getMessage());
}