[~] Refactor
This commit is contained in:
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')
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user