|
|
@ -447,16 +447,15 @@ def getClientIp(): |
|
|
|
def checkDomainPanel(): |
|
|
|
def checkDomainPanel(): |
|
|
|
import thisdb |
|
|
|
import thisdb |
|
|
|
from flask import Flask, redirect, request, url_for |
|
|
|
from flask import Flask, redirect, request, url_for |
|
|
|
|
|
|
|
|
|
|
|
current_host = getHost() |
|
|
|
current_host = getHost() |
|
|
|
|
|
|
|
|
|
|
|
domain = thisdb.getOption('panel_domain', default='') |
|
|
|
domain = thisdb.getOption('panel_domain', default='') |
|
|
|
port = getPanelPort() |
|
|
|
port = getPanelPort() |
|
|
|
scheme = 'http' |
|
|
|
scheme = 'http' |
|
|
|
|
|
|
|
|
|
|
|
panel_ssl_data = thisdb.getOptionByJson('panel_ssl', default={'open':False}) |
|
|
|
panel_ssl_data = thisdb.getOptionByJson('panel_ssl', default={'open':False}) |
|
|
|
if panel_ssl_data['open']: |
|
|
|
if panel_ssl_data['open']: |
|
|
|
choose = panel_ssl_data['choose'] |
|
|
|
if not inArray(['local','nginx'], panel_ssl_data['choose']): |
|
|
|
if not inArray(['local','nginx'], choose): |
|
|
|
|
|
|
|
return False |
|
|
|
return False |
|
|
|
scheme = 'https' |
|
|
|
scheme = 'https' |
|
|
|
|
|
|
|
|
|
|
|