From 5d7b6cfdb30c1121d991038c55586d4e9d834b10 Mon Sep 17 00:00:00 2001 From: sipp11 Date: Sat, 28 Dec 2019 10:41:51 +0700 Subject: [PATCH] Clean up IP from HAProxy residual --- update.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/update.py b/update.py index 7cfa486..22ff306 100644 --- a/update.py +++ b/update.py @@ -28,7 +28,8 @@ def get_public_ip(): res = get(EVERYDAY_IP_SERVICE) if res.status_code != 200: return None - return res.text.strip() + ip = res.text.strip().replace('::ffff:', '') + return ip def get_namesilo_dns(key, domain, target_host):