mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
The following issues related to cloud deployment have been resolved:
- Masking the credentials input fields - The loading symbol doesn't work while reloading the options in the select control - Reduce the wizard opening timeout - urllib library upgrade impacts host IP fetch refs #7177
This commit is contained in:
committed by
Akshay Joshi
parent
83660ec9ed
commit
69069e9af3
@@ -16,16 +16,14 @@ def get_my_ip():
|
||||
""" Return the public IP of this host """
|
||||
http = urllib3.PoolManager()
|
||||
try:
|
||||
external_ip = http.request.urlopen(
|
||||
'https://ident.me').read().decode('utf8')
|
||||
external_ip = http.request('GET', 'https://ident.me').data
|
||||
except Exception:
|
||||
try:
|
||||
external_ip = http.request.urlopen(
|
||||
'https://ifconfig.me/ip').read().decode('utf8')
|
||||
external_ip = http.request('GET', 'https://ifconfig.me/ip').data
|
||||
except Exception:
|
||||
external_ip = '127.0.0.1'
|
||||
|
||||
return external_ip
|
||||
return '{}/{}'.format(external_ip, 32)
|
||||
|
||||
|
||||
def get_random_id():
|
||||
|
||||
Reference in New Issue
Block a user