diff --git a/app/Protocols/ClashMeta.php b/app/Protocols/ClashMeta.php index aff8982..845e052 100644 --- a/app/Protocols/ClashMeta.php +++ b/app/Protocols/ClashMeta.php @@ -194,8 +194,6 @@ class ClashMeta $array['server'] = $server['host']; $array['port'] = $server['port']; $array['uuid'] = $password; - $array['alterId'] = 0; - $array['cipher'] = 'auto'; $array['udp'] = true; // XTLS流控算法 @@ -242,10 +240,8 @@ class ClashMeta $array['ws-opts']['path'] = $wsSettings['path']; if (isset($wsSettings['headers']['Host']) && !empty($wsSettings['headers']['Host'])) $array['ws-opts']['headers'] = ['Host' => $wsSettings['headers']['Host']]; - if (isset($wsSettings['path']) && !empty($wsSettings['path'])) - $array['ws-path'] = $wsSettings['path']; - if (isset($wsSettings['headers']['Host']) && !empty($wsSettings['headers']['Host'])) - $array['ws-headers'] = ['Host' => $wsSettings['headers']['Host']]; + $array['ws-opts']['max-early-data'] = 2560; + $array['ws-opts']['early-data-header-name'] = 'Sec-WebSocket-Protocol'; } } if ($server['network'] === 'grpc') {