summaryrefslogtreecommitdiff
path: root/src/ot_config.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ot_config.c')
-rw-r--r--src/ot_config.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ot_config.c b/src/ot_config.c
index 4064d1b..6b51c61 100644
--- a/src/ot_config.c
+++ b/src/ot_config.c
@@ -320,7 +320,7 @@ static int parse_configfile(char *config_filename) {
320 int off = scan_ip6_port(p, tmpip, &tmpport); 320 int off = scan_ip6_port(p, tmpip, &tmpport);
321 321
322 if (!off || !listen_scan_options(p + off, &shared, &workers)) 322 if (!off || !listen_scan_options(p + off, &shared, &workers))
323 goto parse_error; 323 exerr("listen.tcp, listen.udp and listen.tcp_udp want an address, optionally a port and options.");
324 if (kind != CONFIG_LISTEN_UDP) 324 if (kind != CONFIG_LISTEN_UDP)
325 listen_append(tmpip, tmpport, FLAG_TCP, shared, workers), ++bound; 325 listen_append(tmpip, tmpport, FLAG_TCP, shared, workers), ++bound;
326 if (kind != CONFIG_LISTEN_TCP) 326 if (kind != CONFIG_LISTEN_TCP)
@@ -382,7 +382,7 @@ static int parse_configfile(char *config_filename) {
382#ifdef WANT_SYNC_LIVE 382#ifdef WANT_SYNC_LIVE
383 case CONFIG_LIVESYNC_CLUSTER_GROUP: 383 case CONFIG_LIVESYNC_CLUSTER_GROUP:
384 if (!ip_parse(p, tmpip) || livesync_set_group(tmpip) == -1) 384 if (!ip_parse(p, tmpip) || livesync_set_group(tmpip) == -1)
385 goto parse_error; 385 exerr("livesync.cluster.group wants a multicast address, out of 224.0.0.0/4.");
386 break; 386 break;
387 case CONFIG_LIVESYNC_CLUSTER_NODE_IP: 387 case CONFIG_LIVESYNC_CLUSTER_NODE_IP:
388 if (!scan_ip6_net(p, &tmpnet)) 388 if (!scan_ip6_net(p, &tmpnet))
@@ -446,7 +446,7 @@ static void help(char *name) {
446 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"); 446 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");
447 fprintf(stderr, " Here -i 127.0.0.1 selects the ip address for the next -p 6969 and -P 6969.\n"); 447 fprintf(stderr, " Here -i 127.0.0.1 selects the ip address for the next -p 6969 and -P 6969.\n");
448 fprintf(stderr, " If no port is bound from config file or command line, the last address given\n"); 448 fprintf(stderr, " If no port is bound from config file or command line, the last address given\n");
449 fprintf(stderr, " (or ::1 if none is set) will be used on port 6969.\n"); 449 fprintf(stderr, " is used on port 6969, and every interface if none was given.\n");
450} 450}
451#undef HELPLINE 451#undef HELPLINE
452 452