diff --git a/app/Protocols/Clash.php b/app/Protocols/Clash.php index d112926..f0914a2 100644 --- a/app/Protocols/Clash.php +++ b/app/Protocols/Clash.php @@ -205,7 +205,7 @@ class Clash extends AbstractProtocol if (data_get($protocol_settings, 'network_settings.header.type', 'none') !== 'none') { $array['http-opts'] = [ 'headers' => data_get($protocol_settings, 'network_settings.header.request.headers'), - 'path' => \Illuminate\Support\Arr::random(data_get($protocol_settings, 'network_settings.header.request.path', ['/'])) + 'path' => data_get($protocol_settings, 'network_settings.header.request.path', ['/']) ]; } break; diff --git a/app/Protocols/ClashMeta.php b/app/Protocols/ClashMeta.php index 2553660..3fc1b10 100644 --- a/app/Protocols/ClashMeta.php +++ b/app/Protocols/ClashMeta.php @@ -263,7 +263,7 @@ class ClashMeta extends AbstractProtocol if (data_get($protocol_settings, 'network_settings.header.type', 'none') !== 'none') { $array['http-opts'] = [ 'headers' => data_get($protocol_settings, 'network_settings.header.request.headers'), - 'path' => \Illuminate\Support\Arr::random(data_get($protocol_settings, 'network_settings.header.request.path', ['/'])) + 'path' => data_get($protocol_settings, 'network_settings.header.request.path', ['/']) ]; } break;