Skip to content

Commit

Permalink
增加server
Browse files Browse the repository at this point in the history
  • Loading branch information
JanHuang committed Jul 6, 2018
1 parent bf98a66 commit 01ba1d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Server.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public function initListeners()
$listeners = config()->get('server.listeners', []);
foreach ($listeners as $listener) {
$this->server->listen(new $listener['class'](
app()->getName().' ports',
isset($listener['name']) ? $listener['name'] : app()->getName().' ports',
$listener['host'],
isset($listener['options']) ? $listener['options'] : []
));
Expand Down

0 comments on commit 01ba1d9

Please sign in to comment.