From 081101267645d221da1cc2b288db7e36ad3bbef9 Mon Sep 17 00:00:00 2001 From: Simon Date: Sat, 10 Sep 2022 20:58:49 +0100 Subject: [PATCH] fix bug in port from enviornment variable --- hotspot_proxy_v2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hotspot_proxy_v2.py b/hotspot_proxy_v2.py index d1e1efb..35bb2ee 100644 --- a/hotspot_proxy_v2.py +++ b/hotspot_proxy_v2.py @@ -312,7 +312,7 @@ if __name__ == '__main__': if 'FDPROXY_CLIENTINFO' in os.environ: ClientInfo = bool(os.environ['FDPROXY_CLIENTINFO']) if 'FDPROXY_LISTENPORT' in os.environ: - ListenPort = os.environ['FDPROXY_LISTENPORT'] + ListenPort = int(os.environ['FDPROXY_LISTENPORT']) for port in range(DestportStart,DestPortEnd+1,1): CONNTRACK[port] = False