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