We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2ed7f8c commit e7cd105Copy full SHA for e7cd105
1 file changed
src/Server.php
@@ -101,9 +101,12 @@ protected function resolveConfig(): void
101
}
102
103
104
- protected static function parseStrToListenAddr(string $str, int $defaultPort): array
+ protected static function parseStrToListenAddr(string $str, int $defaultPort): ?array
105
{
106
$listen = parse_str_ip_and_port($str, $defaultPort);
107
+ if ($listen === null) {
108
+ return null;
109
+ }
110
if ($listen[2] ?? false) {
111
$sockType = SWOOLE_UNIX_STREAM;
112
} else {
0 commit comments