Skip to content

Commit

Permalink
Support setting swoole server mode (#666)
Browse files Browse the repository at this point in the history
  • Loading branch information
sy-records authored Mar 24, 2023
1 parent 7cae88f commit da35868
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/createSwooleServer.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
try {
$server = new Swoole\Http\Server(
$serverState['host'] ?? '127.0.0.1',
$serverState['port'] ?? '8080',
SWOOLE_PROCESS,
$serverState['port'] ?? 8080,
$serverState['mode'] ?? SWOOLE_PROCESS,
($config['swoole']['ssl'] ?? false)
? SWOOLE_SOCK_TCP | SWOOLE_SSL
: SWOOLE_SOCK_TCP,
Expand Down

0 comments on commit da35868

Please sign in to comment.