From 3fe459ff2f0c48a6bbf337b2751ab58ab5296c91 Mon Sep 17 00:00:00 2001 From: xhe Date: Fri, 1 Dec 2023 16:47:21 +0800 Subject: [PATCH] relax check Signed-off-by: xhe --- pkg/proxy/backend/authenticator.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/proxy/backend/authenticator.go b/pkg/proxy/backend/authenticator.go index 77ed078c..4f1bafc8 100644 --- a/pkg/proxy/backend/authenticator.go +++ b/pkg/proxy/backend/authenticator.go @@ -214,7 +214,7 @@ loop: if err != nil { // tiproxy pp enabled, tidb pp disabled, tls disabled => invalid sequence // tiproxy pp disabled, tidb pp enabled, tls disabled => invalid sequence - if pktIdx == 0 && auth.proxyProtocol { + if pktIdx == 0 { return errors.Wrap(ErrBackendPPV2, err) } return err