Rename auto_cycle to auto_connect in config
User config is updated if appropriate. Add tests behaviour is as expected. Just the one rename-it reference to auto_cycle remains.
This commit is contained in:
@@ -209,7 +209,7 @@ class NetworkProxy(util.DaemonThread):
|
||||
def set_parameters(self, host, port, protocol, proxy, auto_connect):
|
||||
proxy_str = serialize_proxy(proxy)
|
||||
server_str = serialize_server(host, port, protocol)
|
||||
self.config.set_key('auto_cycle', auto_connect, True)
|
||||
self.config.set_key('auto_connect', auto_connect, True)
|
||||
self.config.set_key("proxy", proxy_str, True)
|
||||
self.config.set_key("server", server_str, True)
|
||||
# abort if changes were not allowed by config
|
||||
|
||||
Reference in New Issue
Block a user