fix bug in port from enviornment variable

This commit is contained in:
Simon 2022-09-10 20:58:49 +01:00
parent 1e26e46e4b
commit 0811012676
1 changed files with 1 additions and 1 deletions

View File

@ -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