mirror of
https://github.com/zr-hebo/sniffer-agent.git
synced 2025-08-11 15:20:46 +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) {
|
func (ms *MysqlSession) composeQueryPiece() (mqp *model.PooledMysqlQueryPiece) {
|
||||||
clientIP := ms.clientIP
|
clientIP := ms.clientIP
|
||||||
clientPort := ms.clientPort
|
clientPort := ms.clientPort
|
||||||
if clientIP == nil || len(*clientIP) < 1 {
|
if clientIP == nil {
|
||||||
clientIP = ms.srcIP
|
clientIP = ms.srcIP
|
||||||
clientPort = ms.serverPort
|
clientPort = ms.serverPort
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user