From 1917bf7ee4ded980f66f39483547a16f80e2a107 Mon Sep 17 00:00:00 2001 From: Florent Daigniere Date: Mon, 24 Jun 2024 10:21:16 +0200 Subject: [PATCH] doh2 --- core/base/libs/socrate/socrate/system.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/base/libs/socrate/socrate/system.py b/core/base/libs/socrate/socrate/system.py index 6debfb67..8ea770a3 100644 --- a/core/base/libs/socrate/socrate/system.py +++ b/core/base/libs/socrate/socrate/system.py @@ -133,11 +133,11 @@ def clean_env(): PORTS_REQUIRING_TLS=['443', '465', '993', '995'] ALL_PORTS='25,80,443,465,993,995,4190' for item in os.environ.get('PORTS', ALL_PORTS).split(','): - if item in PORTS_REQUIRING_TLS and os.environ['TLS_FLAVOR'] == 'notls': + if item in PORTS_REQUIRING_TLS and os.environ.get('TLS_FLAVOR','') == 'notls': continue os.environ[f'PORT_{item}']='True' - if os.environ['TLS_FLAVOR'] != 'notls': + if os.environ.get('TLS_FLAVOR', '') != 'notls': for item in os.environ.get('TLS', ALL_PORTS).split(','): if item in PORTS_REQUIRING_TLS: os.environ[f'TLS_{item}']='True'