sys_patch: Allow only wifi patches when no KDK/internet available

This commit is contained in:
Mykola Grymalyuk
2022-12-19 17:01:06 -07:00
parent 907ce75295
commit 5fdde346cf
3 changed files with 36 additions and 2 deletions
+3 -1
View File
@@ -360,7 +360,9 @@ def get_firmware_vendor(*, decode: bool = False):
value = value.strip("\0")
return value
def verify_network_connection(url):
def verify_network_connection(url=None):
if url is None:
url = "https://www.google.com"
try:
response = SESSION.head(url, timeout=5, allow_redirects=True)
return True