Skip to content

Commit 7057975

Browse files
committed
expose --file-only option to disable dir listing
1 parent e9c80aa commit 7057975

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

websockify/websocketproxy.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -542,6 +542,8 @@ def websockify_init():
542542
parser.add_option("--legacy-syslog", action="store_true",
543543
help="Use the old syslog protocol instead of RFC 5424. "
544544
"Use this if the messages produced by websockify seem abnormal.")
545+
parser.add_option("--file-only", action="store_true",
546+
help="use this to disable directory listings in web server.")
545547

546548
(opts, args) = parser.parse_args()
547549

0 commit comments

Comments
 (0)