From d1e50d06b5780a7b32e69b23ce5eef0bf2cc29d8 Mon Sep 17 00:00:00 2001 From: VirtuBox Date: Mon, 3 Jun 2024 00:48:14 +0200 Subject: [PATCH] Fix --hsts --- wo/core/sslutils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wo/core/sslutils.py b/wo/core/sslutils.py index 09b05ce..ef167e4 100644 --- a/wo/core/sslutils.py +++ b/wo/core/sslutils.py @@ -138,7 +138,7 @@ class SSL: """Enable or disable htsts for a site""" if enable is True: if WOFileUtils.enabledisable( - self, '/var/www/{0}/conf/nginx/hsts.conf' + self, f'/var/www/{wo_domain_name}/conf/nginx/hsts.conf' ): return 0 else: @@ -158,7 +158,7 @@ class SSL: return 0 else: if WOFileUtils.enabledisable( - self, '/var/www/{0}/conf/nginx/hsts.conf', + self, f'/var/www/{wo_domain_name}/conf/nginx/hsts.conf', enable=False ): Log.info(self, "HSTS disabled")