diff --git a/modules/Classes/Config.py b/modules/Classes/Config.py index 7e36430..cc7eebc 100644 --- a/modules/Classes/Config.py +++ b/modules/Classes/Config.py @@ -61,8 +61,12 @@ class Config: setup proxy """ proxy_conf = config[args.config]["proxy"] - proxy_address = proxy[config[args.config]["proxy"]]["address"] - proxy_port = proxy[config[args.config]["proxy"]]["port"] + if proxy_conf != -1: + proxy_address = proxy[config[args.config]["proxy"]]["address"] + proxy_port = proxy[config[args.config]["proxy"]]["port"] + else: + proxy_address = "" + proxy_port = "" self.proxy = Proxy(proxy_conf, proxy_address, proxy_port) def vnc_enabled(self):