mirror of
https://github.com/v2board/v2board.git
synced 2024-11-10 17:49:11 +08:00
remove web tls config
This commit is contained in:
parent
23bfb20307
commit
3a7a0c6e62
@ -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, '传输协议配置格式不正确');
|
||||||
|
@ -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'
|
||||||
|
Loading…
Reference in New Issue
Block a user