mirror of
https://github.com/zr-hebo/sniffer-agent.git
synced 2025-08-07 14:39:02 +08:00
reduce compare
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user