WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 03d3824

Browse files
committed
Update server.py
1 parent 2432cde commit 03d3824

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/server/server.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -177,17 +177,17 @@ def UpdateProxy2(self, httpProxyIndex, httpProxy, sock5Proxy):
177177
# http代理
178178
elif httpProxyIndex == 1 and httpProxy:
179179
proxy = httpProxy
180-
if "http" not in httpProxy:
181-
httpProxy = "http://" + proxy
180+
if "http" not in proxy:
181+
proxy = "http://" + proxy
182182
trustEnv = False
183183
# 系统代理
184184
elif httpProxyIndex == 3:
185185
proxy = None
186186
proxyDict = urllib.request.getproxies()
187187
if isinstance(proxyDict, dict) and proxyDict.get("http"):
188188
proxy = proxyDict.get("http")
189-
if "http" not in httpProxy:
190-
httpProxy = "http://" + proxy
189+
if "http" not in proxy:
190+
proxy = "http://" + proxy
191191
trustEnv = False
192192
# 其他
193193
else:

0 commit comments

Comments
 (0)