LocalTunnel Linux Fix

This commit is contained in:
Henk 2022-04-19 14:41:21 +02:00
parent b8e79afe5e
commit 11280a6e66
1 changed files with 2 additions and 2 deletions

View File

@ -5332,8 +5332,8 @@ if __name__ == "__main__":
#socketio.run(app, host='0.0.0.0', port=5000)
if(vars.host):
if(args.localtunnel):
import subprocess
localtunnel = subprocess.Popen(['lt', '-p', '5000', 'http'], shell=True, stdout=subprocess.PIPE)
import subprocess, shutil
localtunnel = subprocess.Popen([shutil.which('lt'), '-p', '5000', 'http'], stdout=subprocess.PIPE)
attempts = 0
while attempts < 10:
try: