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"]:
|
if v["type"]:
|
||||||
proxy_settings = lt.proxy_settings()
|
proxy_settings = lt.proxy_settings()
|
||||||
proxy_settings.type = lt.proxy_type(v["type"])
|
proxy_settings.type = lt.proxy_type(v["type"])
|
||||||
proxy_settings.username = v["username"]
|
proxy_settings.username = str(v["username"])
|
||||||
proxy_settings.password = v["password"]
|
proxy_settings.password = str(v["password"])
|
||||||
proxy_settings.hostname = v["hostname"]
|
proxy_settings.hostname = str(v["hostname"])
|
||||||
proxy_settings.port = v["port"]
|
proxy_settings.port = v["port"]
|
||||||
log.debug("setting %s proxy settings", k)
|
log.debug("setting %s proxy settings", k)
|
||||||
getattr(self.session, "set_%s_proxy" % k)(proxy_settings)
|
getattr(self.session, "set_%s_proxy" % k)(proxy_settings)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user