1
0

Change binding to 0.0.0.0

Quick fix to allow to work inside Docker instance and behind a NAT.
Este cometimento está contido em:
jonthekiller
2020-08-02 10:43:39 +02:00
cometido por GitHub
ascendente 9c256643fa
cometimento 792eea9df2

Ver ficheiro

@@ -293,7 +293,7 @@ class CommunicationManager implements CallbackListener, UsageInformationAble {
});
});
//TODO check if port is closed
$this->socket->listen($socketPort, $this->maniaControl->getServer()->ip);
$this->socket->listen($socketPort, '0.0.0.0');
Logger::log("[CommunicationManager] Socket " . $this->maniaControl->getServer()->ip . ":" . $this->socket->getPort() . " Successfully created!");
} catch (ConnectionException $e) {
@@ -315,4 +315,4 @@ class CommunicationManager implements CallbackListener, UsageInformationAble {
$communication->tick();
}
}
}
}