diff --git a/src/HttpServer.php b/src/HttpServer.php index 7cc538b..8b715b8 100644 --- a/src/HttpServer.php +++ b/src/HttpServer.php @@ -54,7 +54,7 @@ public function __construct(array $config,LoopInterface $loop,OutputInterface $o public function run(): void { - $socket = new \React\Socket\Server($this->port,$this->loop); + $socket = new \React\Socket\Server($this->host.":".$this->port,$this->loop); $this->output->writeln('Listening on '.$this->host.":".$this->port.''); $this->server->listen($socket); }