Fix the proxy_bypass_registry function all returning true in some cases.

This commit is contained in:
flysee
2022-12-07 11:24:22 +00:00
parent eeafb6ab3a
commit 1604e20fc8
+2
View File
@@ -97,6 +97,8 @@ if sys.platform == "win32":
# '<local>' string by the localhost entry and the corresponding
# canonical entry.
proxyOverride = proxyOverride.split(";")
# filter out empty strings to avoid re.match all true.
proxyOverride = filter(None, proxyOverride)
# now check if we match one of the registry values.
for test in proxyOverride:
if test == "<local>":