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 ')
$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);
}
}
}