From 6b3c33d87a7170b2fb94aba5b7535a7780d9c0c2 Mon Sep 17 00:00:00 2001 From: ghost Date: Wed, 24 Jan 2024 13:56:00 +0200 Subject: [PATCH] reduce socket connection timeout --- src/Controller/MainController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Controller/MainController.php b/src/Controller/MainController.php index d8c8673..918bbcf 100644 --- a/src/Controller/MainController.php +++ b/src/Controller/MainController.php @@ -72,7 +72,8 @@ class MainController extends AbstractController $node->Connect( false === filter_var($server->getHost(), FILTER_VALIDATE_IP, FILTER_FLAG_IPV6) ? $server->getHost() : "[{$server->getHost()}]", - $server->getPort() + $server->getPort(), + 1 ); if ($node->Ping())