From 44228839178f0354a4e065f6ef33c0c79b0236f1 Mon Sep 17 00:00:00 2001 From: Dirk Engling Date: Tue, 3 Nov 2026 12:39:18 +0100 Subject: Refuse to start on a listen statement that does not parse --- src/ot_config.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ot_config.c') diff --git a/src/ot_config.c b/src/ot_config.c index 36f50a6..6b51c61 100644 --- a/src/ot_config.c +++ b/src/ot_config.c @@ -320,7 +320,7 @@ static int parse_configfile(char *config_filename) { int off = scan_ip6_port(p, tmpip, &tmpport); if (!off || !listen_scan_options(p + off, &shared, &workers)) - goto parse_error; + exerr("listen.tcp, listen.udp and listen.tcp_udp want an address, optionally a port and options."); if (kind != CONFIG_LISTEN_UDP) listen_append(tmpip, tmpport, FLAG_TCP, shared, workers), ++bound; if (kind != CONFIG_LISTEN_TCP) @@ -446,7 +446,7 @@ static void help(char *name) { fprintf(stderr, "\nExample: ./opentracker -i 127.0.0.1 -p 6969 -P 6969 -f ./opentracker.conf -i 10.1.1.23 -p 2710 -p 80\n"); fprintf(stderr, " Here -i 127.0.0.1 selects the ip address for the next -p 6969 and -P 6969.\n"); fprintf(stderr, " If no port is bound from config file or command line, the last address given\n"); - fprintf(stderr, " (or ::1 if none is set) will be used on port 6969.\n"); + fprintf(stderr, " is used on port 6969, and every interface if none was given.\n"); } #undef HELPLINE -- cgit v1.3