Skip to content

Commit f472e71

Browse files
committed
Update tcp.go
1 parent e721cc8 commit f472e71

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

header/tcp.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ func TCPRecv(address string, forward bool) {
7979
var layer uint8
8080
if forward {
8181
if address[0] == ':' {
82-
filter = fmt.Sprintf("tcp.SrcPort == %d and (", address[1:])
82+
filter = fmt.Sprintf("tcp.SrcPort == %s and (", address[1:])
8383
} else {
8484
filter = fmt.Sprintf("ip.SrcAddr = %s and tcp.SrcPort == %d and (", tcpAddr.IP.String(), tcpAddr.Port)
8585
}

0 commit comments

Comments
 (0)