Clean up IP from HAProxy residual
This commit is contained in:
parent
5552563405
commit
5d7b6cfdb3
@ -28,7 +28,8 @@ def get_public_ip():
|
|||||||
res = get(EVERYDAY_IP_SERVICE)
|
res = get(EVERYDAY_IP_SERVICE)
|
||||||
if res.status_code != 200:
|
if res.status_code != 200:
|
||||||
return None
|
return None
|
||||||
return res.text.strip()
|
ip = res.text.strip().replace('::ffff:', '')
|
||||||
|
return ip
|
||||||
|
|
||||||
|
|
||||||
def get_namesilo_dns(key, domain, target_host):
|
def get_namesilo_dns(key, domain, target_host):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user