Skip to content

Commit

Permalink
backend: do not add CLIENT_SSL for HandshakeHandler (#225)
Browse files Browse the repository at this point in the history
  • Loading branch information
djshow832 authored Mar 1, 2023
1 parent a55e6b6 commit 7561e08
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions pkg/proxy/backend/authenticator.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,6 @@ func (auth *Authenticator) handshakeFirstTime(logger *zap.Logger, cctx ConnConte
common := frontendCapability & frontendCapabilityResponse
logger.Warn("frontend capabilities differs between SSL request and handshake response", zap.Stringer("common", common), zap.Stringer("ssl", frontendCapability^common), zap.Stringer("resp", frontendCapabilityResponse^common))
}
} else {
binary.LittleEndian.PutUint32(pkt, (frontendCapability | pnet.ClientSSL).Uint32())
}
if commonCaps := frontendCapability & requiredFrontendCaps; commonCaps != requiredFrontendCaps {
logger.Error("require frontend capabilities", zap.Stringer("common", commonCaps), zap.Stringer("required", requiredFrontendCaps))
Expand Down

0 comments on commit 7561e08

Please sign in to comment.