Merge branch 'haproxy'

This commit is contained in:
hebo 2019-12-06 14:30:50 +08:00
commit c83c5a1cc5
1 changed files with 1 additions and 1 deletions

View File

@ -339,7 +339,7 @@ func filterQueryPieceBySQL(mqp *model.PooledMysqlQueryPiece, querySQL []byte) (*
func (ms *MysqlSession) composeQueryPiece() (mqp *model.PooledMysqlQueryPiece) {
clientIP := ms.clientIP
clientPort := ms.clientPort
if clientIP == nil || len(*clientIP) < 1 {
if clientIP == nil {
clientIP = ms.srcIP
clientPort = ms.serverPort
}