From 66d5354ac2ba206b71986efe10effa9951d81ee9 Mon Sep 17 00:00:00 2001 From: piair Date: Fri, 17 Jun 2022 07:22:37 +0200 Subject: [PATCH] Check if ipv4 is used --- V4.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/V4.py b/V4.py index a7c1267..2e262e8 100755 --- a/V4.py +++ b/V4.py @@ -123,7 +123,8 @@ def Timer(text="undefined"): def check_ipv4(): driver.get("https://api64.ipify.org") - if len(driver.page_source.split('.')) == 4 : + elm = driver.find_element(By.TAG_NAME, "body") + if len(elm.text.split('.')) == 4 : return True return False @@ -1010,7 +1011,7 @@ def close(): def dev(): print(check_ipv4()) - + def CustomStart(Credentials): if not IsLinux :