diff options
author | gVisor bot <gvisor-bot@google.com> | 2021-10-01 18:10:09 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2021-10-01 18:10:09 +0000 |
commit | f21e94dd8420e74576cdcc3501548e08c926ac52 (patch) | |
tree | 2e1f0ad0a461a7cd0f1e951fe83d912113a87cd0 /pkg/tcpip/stack/iptables_targets.go | |
parent | 1afe4725f560541e5f0e2de6982c216a676e32bb (diff) | |
parent | 8073370009aeccaffa7885ab073e630f644fafe6 (diff) |
Merge release-20210921.0-51-g807337000 (automated)
Diffstat (limited to 'pkg/tcpip/stack/iptables_targets.go')
-rw-r--r-- | pkg/tcpip/stack/iptables_targets.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/tcpip/stack/iptables_targets.go b/pkg/tcpip/stack/iptables_targets.go index 8310645bf..949c44c9b 100644 --- a/pkg/tcpip/stack/iptables_targets.go +++ b/pkg/tcpip/stack/iptables_targets.go @@ -162,7 +162,7 @@ func (rt *RedirectTarget) Action(pkt *PacketBuffer, ct *ConnTrack, hook Hook, r // packet of the connection comes here. Other packets will be // manipulated in connection tracking. if conn := ct.insertRedirectConn(pkt, hook, rt.Port, address); conn != nil { - ct.handlePacket(pkt, hook, r) + conn.handlePacket(pkt, hook, dirOriginal, r) } default: return RuleDrop, 0 @@ -213,7 +213,7 @@ func snatAction(pkt *PacketBuffer, ct *ConnTrack, hook Hook, r *Route, port uint // // Does nothing if the protocol does not support connection tracking. if conn := ct.insertSNATConn(pkt, hook, port, address); conn != nil { - ct.handlePacket(pkt, hook, r) + conn.handlePacket(pkt, hook, dirOriginal, r) } return RuleAccept, 0 |