fix: restore stripped protocol_settings fields for tuic/mieru/vmess

This commit is contained in:
xboard 2026-04-19 00:42:46 +08:00
parent a9cae6dc19
commit 135164056a

View File

@ -54,6 +54,7 @@ class ServerSave extends FormRequest
'tls' => 'required|integer',
'network' => 'required|string',
'network_settings' => 'nullable|array',
'rules' => 'nullable|array',
],
'trojan' => [
'tls' => 'nullable|integer',
@ -91,6 +92,12 @@ class ServerSave extends FormRequest
'http' => [
'tls' => 'required|integer',
],
'tuic' => [
'version' => 'nullable|integer',
'congestion_control' => 'nullable|string',
'alpn' => 'nullable|array',
'udp_relay_mode' => 'nullable|string',
],
'mieru' => [
'transport' => 'required|string|in:TCP,UDP',
'traffic_pattern' => 'string',
@ -161,6 +168,10 @@ class ServerSave extends FormRequest
$rules,
$this->buildTlsObjectRules(),
),
'mieru' => array_merge(
$rules,
self::MULTIPLEX_RULES,
),
'vless' => array_merge(
$rules,
$this->buildTlsSettingsRules(),