[~] Refactor

This commit is contained in:
Siarhei Siniak 2022-02-12 16:09:53 +03:00
parent d82c0d4cd9
commit e2f475cfd2

@ -43,7 +43,10 @@ logging.warning('got dynu_redirect')
NGROK_DOMAIN = sys.argv[2]
t6 = requests.get('http://%s:4040/api/tunnels' % NGROK_DOMAIN).json()
try:
TUNNEL_URL = t6['tunnels'][0]['public_url'].replace('http://', 'https://')
except:
TUNNEL_URL = ''
logging.warning('got tunnel_url')