Skip to content

Commit

Permalink
Merge pull request #137 from vlacour97/hotfix/host_management_on_tcp_…
Browse files Browse the repository at this point in the history
…server

Consideration of the host when tcp server is initialized
  • Loading branch information
Nek- authored Jun 3, 2018
2 parents 59836a6 + 74f99cd commit 13b0633
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Server/WebSocketServer.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ public function start()
}

$this->loop = $this->loop ?? \React\EventLoop\Factory::create();
$this->server = $this->server ?? new \React\Socket\TcpServer($this->port, $this->loop);
$this->server = $this->server ?? new \React\Socket\TcpServer($this->host . ':' . $this->port, $this->loop);

if ($this->config['ssl']) {
$this->server = new \React\Socket\SecureServer($this->server, $this->loop, array_merge([
Expand Down

0 comments on commit 13b0633

Please sign in to comment.