Check if ipv4 is used
This commit is contained in:
parent
ba70727b02
commit
66d5354ac2
3
V4.py
3
V4.py
|
@ -123,7 +123,8 @@ def Timer(text="undefined"):
|
||||||
|
|
||||||
def check_ipv4():
|
def check_ipv4():
|
||||||
driver.get("https://api64.ipify.org")
|
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 True
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue