Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkFenX committed Dec 5, 2023
2 parents 89f1e0a + 28c7ff5 commit fc43510
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions service/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,9 +222,9 @@ def autodetect():
if prefix not in proxydict:
continue
proxyline = proxydict[prefix]
proto = "{0}://".format(prefix)
if proxyline[:len(proto)] == proto:
proxyline = proxyline[len(proto):]
proto_pos = proxyline.find('://')
if proto_pos != -1:
proxyline = proxyline[proto_pos+3:]
# sometimes proxyline contains "user:password@" section before proxy address
# remove it if present, so later split by ":" works
if '@' in proxyline:
Expand Down

0 comments on commit fc43510

Please sign in to comment.