Check if ipv4 is used

This commit is contained in:
piair 2022-06-17 07:22:37 +02:00
parent ba70727b02
commit 66d5354ac2
1 changed files with 3 additions and 2 deletions

5
V4.py
View File

@ -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 :