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']); $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 (isset($params['settings'])) {
if (!is_object(json_decode($params['settings']))) { if (!is_object(json_decode($params['settings']))) {
abort(500, '传输协议配置格式不正确'); abort(500, '传输协议配置格式不正确');

View File

@ -15,8 +15,6 @@ class ServerSave extends FormRequest
'port' => 'required', 'port' => 'required',
'server_port' => 'required', 'server_port' => 'required',
'tls' => 'required', 'tls' => 'required',
'tls_pem' => '',
'tls_key' => '',
'tags' => 'array', 'tags' => 'array',
'rate' => 'required|numeric', 'rate' => 'required|numeric',
'network' => 'required|in:tcp,kcp,ws,http,domainsocket,quic' 'network' => 'required|in:tcp,kcp,ws,http,domainsocket,quic'