From 119f2cb6b98c3874d6e1b0871b0c5a77ac0472ea Mon Sep 17 00:00:00 2001 From: Deon George Date: Wed, 27 Nov 2024 16:05:11 +1100 Subject: [PATCH] Fix bug with HAPROXY v2 processing when implementing v1 in d2d109 --- app/Classes/Sock/SocketClient.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Classes/Sock/SocketClient.php b/app/Classes/Sock/SocketClient.php index e93e76f..77a5887 100644 --- a/app/Classes/Sock/SocketClient.php +++ b/app/Classes/Sock/SocketClient.php @@ -63,7 +63,7 @@ final class SocketClient { if (($x=$this->read(5,6)) === 'PROXY ') $vers = 1; - elseif (($x === "\x0d\x0a\x0d\x0a\x00\x0d") && ($this->read('5,6') === "\x0aQUIT\x0a")) + elseif (($x === "\x0d\x0a\x0d\x0a\x00\x0d") && ($this->read(5,6) === "\x0aQUIT\x0a")) $vers = 2; else @@ -623,4 +623,4 @@ final class SocketClient { return $this->socketSelect($read,$write,NULL,$timeout); } -} +} \ No newline at end of file