diff --git a/minissdpd/minissdpd.c b/minissdpd/minissdpd.c index b17abc8..d12e003 100644 --- a/minissdpd/minissdpd.c +++ b/minissdpd/minissdpd.c @@ -1288,7 +1288,11 @@ int main(int argc, char * * argv) break; } if(parselanaddr(lan_addr, argv[++i]) != 0) { - fprintf(stderr, "can't parse \"%s\" as a valid address or interface name\n", argv[i]); + fprintf(stderr, "can't parse \"%s\" as a valid " +#ifndef ENABLE_IPV6 + "address or " +#endif + "interface name\n", argv[i]); free(lan_addr); } else { LIST_INSERT_HEAD(&lan_addrs, lan_addr, list); @@ -1323,8 +1327,12 @@ int main(int argc, char * * argv) "-i [-i ] ...\n", argv[0]); fprintf(stderr, - "\n is either an IPv4 address with mask such as\n" - " 192.168.1.42/255.255.255.0, or an interface name such as eth0.\n"); + "\n is " +#ifndef ENABLE_IPV6 + "either an IPv4 address with mask such as\n" + " 192.168.1.42/255.255.255.0, or " +#endif + "an interface name such as eth0.\n"); fprintf(stderr, "\n By default, socket will be open as %s\n" #ifndef NO_BACKGROUND_NO_PIDFILE