aboutgitcodebugslistschat
path: root/tcp.c
diff options
context:
space:
mode:
Diffstat (limited to 'tcp.c')
-rw-r--r--tcp.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/tcp.c b/tcp.c
index 5808e6b..976bfdb 100644
--- a/tcp.c
+++ b/tcp.c
@@ -2864,11 +2864,12 @@ int tcp_init(struct ctx *c)
tcp_sock_refill_init(c);
- if (fwd_listen_sync(c, &c->tcp.fwd_in, PIF_HOST, IPPROTO_TCP) < 0)
+ if (fwd_listen_sync(c, &c->tcp.fwd_in, &c->tcp.scan_in,
+ PIF_HOST, IPPROTO_TCP) < 0)
return -1;
if (c->mode == MODE_PASTA) {
tcp_splice_init(c);
- if (fwd_listen_sync(c, &c->tcp.fwd_out,
+ if (fwd_listen_sync(c, &c->tcp.fwd_out, &c->tcp.scan_out,
PIF_SPLICE, IPPROTO_TCP) < 0)
return -1;
}