Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions websockify/websocketproxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ def __init__(self, RequestHandlerClass=ProxyRequestHandler, *args, **kwargs):
# Last 3 timestamps command was run
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])
rebinder_path = [os.path.join(wsdir, "..", "lib"),
os.path.join(wsdir, "..", "lib", "websockify"),
Expand Down Expand Up @@ -644,7 +644,7 @@ def websockify_init():
del opts.target_cfg

if sys.argv.count('--'):
opts.wrap_cmd = args[1:]
opts.wrap_cmd = args if opts.unix_listen else args[1:]
else:
opts.wrap_cmd = None

Expand Down