mirror of
				https://github.com/v2board/v2board.git
				synced 2025-10-31 17:31:49 +08:00 
			
		
		
		
	remove web tls config
This commit is contained in:
		| @@ -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, '传输协议配置格式不正确'); | ||||
|   | ||||
| @@ -15,8 +15,6 @@ class ServerSave extends FormRequest | ||||
|         'port' => 'required', | ||||
|         'server_port' => 'required', | ||||
|         'tls' => 'required', | ||||
|         'tls_pem' => '', | ||||
|         'tls_key' => '', | ||||
|         'tags' => 'array', | ||||
|         'rate' => 'required|numeric', | ||||
|         'network' => 'required|in:tcp,kcp,ws,http,domainsocket,quic' | ||||
|   | ||||
		Reference in New Issue
	
	Block a user