Fix wsssh command to use -p instead of -P

parent 3818faf4
...@@ -184,7 +184,7 @@ def logos_files(filename): ...@@ -184,7 +184,7 @@ def logos_files(filename):
def connect_terminal(client_id): def connect_terminal(client_id):
username = request.form.get('username', 'root') username = request.form.get('username', 'root')
request_id = str(uuid.uuid4()) request_id = str(uuid.uuid4())
command = ['wsssh', '-P', str(args.port), f'{username}@{client_id}.{args.domain}'] command = ['wsssh', '-p', str(args.port), f'{username}@{client_id}.{args.domain}']
# Spawn wsssh process # Spawn wsssh process
proc = subprocess.Popen( proc = subprocess.Popen(
command, command,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment