[~] Refactor

This commit is contained in:
Siarhei Siniak 2022-02-12 20:09:42 +03:00
parent e2f475cfd2
commit 36a8742147

@ -43,10 +43,7 @@ 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')