projects
/
ttyd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
da047be
)
server: hide ipv6 option if not suppored by lws
author
Shuanglei Tao
<tsl0922@gmail.com>
Fri, 19 Jul 2019 14:55:03 +0000
(22:55 +0800)
committer
Shuanglei Tao
<tsl0922@gmail.com>
Fri, 19 Jul 2019 14:56:18 +0000
(22:56 +0800)
src/server.c
patch
|
blob
|
history
diff --git
a/src/server.c
b/src/server.c
index 260fb2a6d5b5977e57fe64d9702b70ce884a4238..e770a26b3dfebf8808d18ee2093132514ac344dd 100644
(file)
--- 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"