From 27f08b5a0106e72a83611ec52854f279a200e605 Mon Sep 17 00:00:00 2001 From: piair Date: Tue, 27 Feb 2024 15:12:25 +0100 Subject: [PATCH] bump version. --- modules/Classes/Config.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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):