aboutsummaryrefslogtreecommitdiff
path: root/slirp.c
diff options
context:
space:
mode:
Diffstat (limited to 'slirp.c')
-rw-r--r--slirp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/slirp.c b/slirp.c
index 33f1031..eb196a1 100644
--- a/slirp.c
+++ b/slirp.c
@@ -794,11 +794,11 @@ int slirp_add_hostfwd(int is_udp, struct in_addr host_addr, int host_port,
}
if (is_udp) {
if (!udp_listen(host_addr.s_addr, htons(host_port), guest_addr.s_addr,
- htons(guest_port), 0))
+ htons(guest_port), SS_HOSTFWD))
return -1;
} else {
if (!tcp_listen(host_addr.s_addr, htons(host_port), guest_addr.s_addr,
- htons(guest_port), 0))
+ htons(guest_port), SS_HOSTFWD))
return -1;
}
return 0;