mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-10 05:49:26 +08:00
Update config_api.py
This commit is contained in:
@@ -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跳转成功!')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user