]> prime8.dev >> repos - ttyd.git/commitdiff
server: hide ipv6 option if not suppored by lws
authorShuanglei Tao <tsl0922@gmail.com>
Fri, 19 Jul 2019 14:55:03 +0000 (22:55 +0800)
committerShuanglei Tao <tsl0922@gmail.com>
Fri, 19 Jul 2019 14:56:18 +0000 (22:56 +0800)
src/server.c

index 260fb2a6d5b5977e57fe64d9702b70ce884a4238..e770a26b3dfebf8808d18ee2093132514ac344dd 100644 (file)
@@ -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"