From faa95b0d88dfb020cd13290e56f40e2c96994e44 Mon Sep 17 00:00:00 2001 From: midoks Date: Sat, 11 Mar 2023 15:07:06 +0800 Subject: [PATCH] Update config_api.py --- class/core/config_api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/class/core/config_api.py b/class/core/config_api.py index 570c43901..f485415b0 100755 --- a/class/core/config_api.py +++ b/class/core/config_api.py @@ -402,7 +402,7 @@ class config_api: panel_ssl = mw.getServerDir() + "/web_conf/nginx/vhost/panel.conf" - if is_https == 'true': + if is_https == 'false': conf = mw.readFile(panel_ssl) if conf: if conf.find('ssl_certificate') == -1: @@ -427,7 +427,7 @@ class config_api: mw.restartWeb() action = '开启' - if is_https == 'false': + if is_https == 'true': action = '关闭' return mw.returnJson(True, action + 'HTTPS跳转成功!')