mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-27 19:55:57 +00:00
Force str for proxy settings
This commit is contained in:
parent
7a6be9df1e
commit
4eb175ae9c
@ -465,9 +465,9 @@ class PreferencesManager(component.Component):
|
||||
if v["type"]:
|
||||
proxy_settings = lt.proxy_settings()
|
||||
proxy_settings.type = lt.proxy_type(v["type"])
|
||||
proxy_settings.username = v["username"]
|
||||
proxy_settings.password = v["password"]
|
||||
proxy_settings.hostname = v["hostname"]
|
||||
proxy_settings.username = str(v["username"])
|
||||
proxy_settings.password = str(v["password"])
|
||||
proxy_settings.hostname = str(v["hostname"])
|
||||
proxy_settings.port = v["port"]
|
||||
log.debug("setting %s proxy settings", k)
|
||||
getattr(self.session, "set_%s_proxy" % k)(proxy_settings)
|
||||
|
Loading…
x
Reference in New Issue
Block a user