Skip to content

Commit

Permalink
Update tcp.go
Browse files Browse the repository at this point in the history
  • Loading branch information
macronut committed Dec 20, 2022
1 parent e721cc8 commit f472e71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion header/tcp.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func TCPRecv(address string, forward bool) {
var layer uint8
if forward {
if address[0] == ':' {
filter = fmt.Sprintf("tcp.SrcPort == %d and (", address[1:])
filter = fmt.Sprintf("tcp.SrcPort == %s and (", address[1:])
} else {
filter = fmt.Sprintf("ip.SrcAddr = %s and tcp.SrcPort == %d and (", tcpAddr.IP.String(), tcpAddr.Port)
}
Expand Down

0 comments on commit f472e71

Please sign in to comment.