aboutgitcodebugslistschat
path: root/conf.c
diff options
context:
space:
mode:
Diffstat (limited to 'conf.c')
-rw-r--r--conf.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/conf.c b/conf.c
index 5426c9b..4dc0660 100644
--- a/conf.c
+++ b/conf.c
@@ -306,6 +306,9 @@ static void conf_ports(const struct ctx *c, char optname, const char *optarg,
} else if (optname == 'u') {
if (!udp_sock_init(c, 0, af, addr, ifname, i))
bound_one = true;
+ } else {
+ /* No way to check in advance for -T and -U */
+ bound_one = true;
}
}
@@ -356,8 +359,11 @@ static void conf_ports(const struct ctx *c, char optname, const char *optarg,
if (!tcp_sock_init(c, af, addr, ifname, i))
bound_one = true;
} else if (optname == 'u') {
- if (udp_sock_init(c, 0, af, addr, ifname, i))
+ if (!udp_sock_init(c, 0, af, addr, ifname, i))
bound_one = true;
+ } else {
+ /* No way to check in advance for -T and -U */
+ bound_one = true;
}
}
} while ((p = next_chunk(p, ',')));