remove web tls config

This commit is contained in:
Tokumeikoi
2020-02-10 16:11:38 +08:00
parent 23bfb20307
commit 3a7a0c6e62
2 changed files with 0 additions and 8 deletions

View File

@ -41,12 +41,6 @@ class ServerController extends Controller
$params['tags'] = json_encode($params['tags']);
}
if ((int)$params['tls']) {
if (!isset($params['tls_pem']) || !isset($params['tls_key'])) {
abort(500, '开启TLS必须填写TLS证书');
}
}
if (isset($params['settings'])) {
if (!is_object(json_decode($params['settings']))) {
abort(500, '传输协议配置格式不正确');