Fix bug with HAPROXY v2 processing when implementing v1 in d2d109
All checks were successful
Create Docker Image / Build Docker Image (x86_64) (push) Successful in 43s
Create Docker Image / Build Docker Image (arm64) (push) Successful in 1m33s
Create Docker Image / Final Docker Image Manifest (push) Successful in 11s

This commit is contained in:
Deon George 2024-11-27 16:05:11 +11:00
parent 05a496c05c
commit 8d1dc800a5

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