From: Shuanglei Tao Date: Fri, 19 Jul 2019 14:55:03 +0000 (+0800) Subject: server: hide ipv6 option if not suppored by lws X-Git-Url: http://git.prime8.dev/?a=commitdiff_plain;h=287585d61a82c2c7470ef7059e38d1eb407dacd7;p=ttyd.git server: hide ipv6 option if not suppored by lws --- diff --git a/src/server.c b/src/server.c index 260fb2a..e770a26 100644 --- a/src/server.c +++ b/src/server.c @@ -85,7 +85,9 @@ void print_help() { " -o, --once Accept only one client and exit on disconnection\n" " -B, --browser Open terminal with the default system browser\n" " -I, --index Custom index.html path\n" +#ifdef LWS_WITH_IPV6 " -6, --ipv6 Enable IPv6 support\n" +#endif " -S, --ssl Enable SSL\n" " -C, --ssl-cert SSL certificate file path\n" " -K, --ssl-key SSL key file path\n"