From 6fc21e05575e5a85ed0626e11ac998a91e603a71 Mon Sep 17 00:00:00 2001 From: whwyy Date: Wed, 29 Nov 2023 14:33:25 +0800 Subject: [PATCH] eee --- Abstracts/AsyncServer.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Abstracts/AsyncServer.php b/Abstracts/AsyncServer.php index bc9e653..5fbc676 100644 --- a/Abstracts/AsyncServer.php +++ b/Abstracts/AsyncServer.php @@ -150,13 +150,13 @@ class AsyncServer implements ServerInterface throw new Exception('Listen port fail.' . swoole_last_error()); } if ($config->type == Constant::SERVER_TYPE_HTTP) { - file_put_contents('php://input', 'Add http port listen ' . $config->host . '::' . $config->port, FILE_APPEND); + file_put_contents('php://output', 'Add http port listen ' . $config->host . '::' . $config->port, FILE_APPEND); } else if ($config->type == Constant::SERVER_TYPE_WEBSOCKET) { - file_put_contents('php://input', 'Add wss port listen ' . $config->host . '::' . $config->port, FILE_APPEND); + file_put_contents('php://output', 'Add wss port listen ' . $config->host . '::' . $config->port, FILE_APPEND); } else if ($config->type == Constant::SERVER_TYPE_UDP) { - file_put_contents('php://input', 'Add udp port listen ' . $config->host . '::' . $config->port, FILE_APPEND); + file_put_contents('php://output', 'Add udp port listen ' . $config->host . '::' . $config->port, FILE_APPEND); } else { - file_put_contents('php://input', 'Add tcp port listen ' . $config->host . '::' . $config->port, FILE_APPEND); + file_put_contents('php://output', 'Add tcp port listen ' . $config->host . '::' . $config->port, FILE_APPEND); } $port->set($this->resetSettings($config->type, $config->settings));