From 3a05a0e6baabb149b313df3cb04b32f1d5ef2341 Mon Sep 17 00:00:00 2001 From: crazywhalecc Date: Mon, 10 Mar 2025 11:07:21 +0800 Subject: [PATCH] Update to PHP 8.4 compatible --- src/ZM/Command/ProxyServerCommand.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/ZM/Command/ProxyServerCommand.php b/src/ZM/Command/ProxyServerCommand.php index 164cd878..f42cee45 100644 --- a/src/ZM/Command/ProxyServerCommand.php +++ b/src/ZM/Command/ProxyServerCommand.php @@ -262,7 +262,6 @@ class ProxyServerCommand extends Command break; case CMD_UDP_ASSOCIATE: $connection->stage = STAGE_UDP_ASSOC; - var_dump('CMD_UDP_ASSOCIATE ' . ($this->config['udp_port'] ?? 2222)); if ($this->config['udp_port'] == 0) { $connection->udpWorker = new Worker('udp://0.0.0.0:0'); /* @phpstan-ignore-next-line */ @@ -274,7 +273,7 @@ class ProxyServerCommand extends Command $listenInfo = stream_socket_get_name($connection->udpWorker->getMainSocket(), false); [$bind_addr, $bind_port] = explode(':', $listenInfo); } else { - $bind_port = $this->config['udp_port'] ?? 2222; + $bind_port = $this->config['udp_port']; } $bind_addr = $this->config['wanIP'] ?? '192.168.1.1';