mirror of
				https://github.com/v2board/v2board.git
				synced 2025-10-31 17:31:49 +08:00 
			
		
		
		
	update
This commit is contained in:
		| @@ -42,6 +42,12 @@ class ServerController extends Controller | ||||
|             $params['tags'] = json_encode($params['tags']); | ||||
|         } | ||||
|  | ||||
|         if (isset($params['dnsSettings'])) { | ||||
|             if (!is_object(json_decode($params['dnsSettings']))) { | ||||
|                 abort(500, 'DNS规则配置格式不正确'); | ||||
|             } | ||||
|         } | ||||
|  | ||||
|         if (isset($params['ruleSettings'])) { | ||||
|             if (!is_object(json_decode($params['ruleSettings']))) { | ||||
|                 abort(500, '审计规则配置格式不正确'); | ||||
|   | ||||
| @@ -20,7 +20,8 @@ class ServerSave extends FormRequest | ||||
|         'network' => 'required|in:tcp,kcp,ws,http,domainsocket,quic', | ||||
|         'networkSettings' => '', | ||||
|         'ruleSettings' => '', | ||||
|         'tlsSettings' => '' | ||||
|         'tlsSettings' => '', | ||||
|         'dnsSettings' => '' | ||||
|     ]; | ||||
|     /** | ||||
|      * Get the validation rules that apply to the request. | ||||
|   | ||||
		Reference in New Issue
	
	Block a user