aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dnsudp2tcp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dnsudp2tcp.c b/dnsudp2tcp.c
index 5f98b8b..20431bd 100644
--- a/dnsudp2tcp.c
+++ b/dnsudp2tcp.c
@@ -264,7 +264,7 @@ static void parse_command_args(int argc, char *argv[]) {
while ((shortopt = getopt(argc, argv, optstr)) != -1) {
switch (shortopt) {
case 'L':
- if (strlen(optarg) + 1 > IP4STRLEN + PORTSTRLEN) {
+ if (strlen(optarg) + 1 > IP6STRLEN + PORTSTRLEN) {
printf("[parse_command_args] invalid listen addr: %s\n", optarg);
goto PRINT_HELP_AND_EXIT;
}