更新wifi连接的代码,改三角形的连接为1秒超时
This commit is contained in:
@@ -255,6 +255,10 @@ class DownloadManager4G:
|
||||
parsed = urlparse(url)
|
||||
host = parsed.hostname
|
||||
path = parsed.path or "/"
|
||||
if parsed.query:
|
||||
path = f"{path}?{parsed.query}"
|
||||
if parsed.fragment:
|
||||
path = f"{path}#{parsed.fragment}"
|
||||
if not host:
|
||||
return False, "bad_url (no host)"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user