This commit is contained in:
Dylan Simon 2026-05-24 21:22:38 +08:00 committed by GitHub
commit 5f2876a7cc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -322,7 +322,7 @@ class WebSocketProxy(websockifyserver.WebSockifyServer):
# Last 3 timestamps command was run # Last 3 timestamps command was run
self.wrap_times = [0, 0, 0] self.wrap_times = [0, 0, 0]
if self.wrap_cmd: if self.wrap_cmd and not self.unix_target:
wsdir = os.path.dirname(sys.argv[0]) wsdir = os.path.dirname(sys.argv[0])
rebinder_path = [os.path.join(wsdir, "..", "lib"), rebinder_path = [os.path.join(wsdir, "..", "lib"),
os.path.join(wsdir, "..", "lib", "websockify"), os.path.join(wsdir, "..", "lib", "websockify"),
@ -661,7 +661,7 @@ def websockify_init():
del opts.target_cfg del opts.target_cfg
if sys.argv.count('--'): if sys.argv.count('--'):
opts.wrap_cmd = args[1:] opts.wrap_cmd = args if opts.unix_listen else args[1:]
else: else:
opts.wrap_cmd = None opts.wrap_cmd = None