mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fix an issue where a cloud instance deployment fails due to wrong import.
This commit is contained in:
@@ -11,12 +11,12 @@ import secrets
|
||||
import string
|
||||
import urllib3
|
||||
import ipaddress
|
||||
from pgadmin.utils.constants import IP_ADDRESS_STRING
|
||||
|
||||
|
||||
def get_my_ip():
|
||||
""" Return the public IP of this host """
|
||||
http = urllib3.PoolManager()
|
||||
IP_ADDRESS_STRING = '{}/{}'
|
||||
try:
|
||||
external_ip = http.request('GET', 'https://ident.me').data
|
||||
except Exception:
|
||||
|
||||
Reference in New Issue
Block a user