Skip to content

Commit

Permalink
Update tcp.go
Browse files Browse the repository at this point in the history
恢复
  • Loading branch information
jonm58 authored May 1, 2024
1 parent f2d5dbc commit c42c06a
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 @@ -975,7 +975,7 @@ func TCPDaemon(address string, forward bool) {
}
continue
}
} else if packet.Raw[ipheadlen+13] == TCP_SYN {
} else if (packet.Raw[ipheadlen+13] & TCP_SYN) != 0 {
dstIP := packet.DstIP()
dstAddr := dstIP.String()
config, ok := IPLookup(dstAddr)
Expand Down

0 comments on commit c42c06a

Please sign in to comment.