Fix bug with HAPROXY v2 processing when implementing v1 in d2d109

This commit is contained in:
Deon George 2024-11-27 16:05:11 +11:00
parent d9817e1c2e
commit 119f2cb6b9

View File

@ -63,7 +63,7 @@ final class SocketClient {
if (($x=$this->read(5,6)) === 'PROXY ') if (($x=$this->read(5,6)) === 'PROXY ')
$vers = 1; $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; $vers = 2;
else else