From f97d9fcc81a9d711cf9b33a99b0a5d66d85dffd0 Mon Sep 17 00:00:00 2001 From: Alpha Kane Date: Fri, 25 Mar 2022 02:02:01 +0800 Subject: [PATCH] Protocols: rename AnXray to SagerNet --- .../Client/Protocols/{AnXray.php => SagerNet.php} | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) rename app/Http/Controllers/Client/Protocols/{AnXray.php => SagerNet.php} (95%) diff --git a/app/Http/Controllers/Client/Protocols/AnXray.php b/app/Http/Controllers/Client/Protocols/SagerNet.php similarity index 95% rename from app/Http/Controllers/Client/Protocols/AnXray.php rename to app/Http/Controllers/Client/Protocols/SagerNet.php index 0d717d01..87ac1681 100644 --- a/app/Http/Controllers/Client/Protocols/AnXray.php +++ b/app/Http/Controllers/Client/Protocols/SagerNet.php @@ -2,9 +2,9 @@ namespace App\Http\Controllers\Client\Protocols; -class AnXray +class SagerNet { - public $flag = 'axxray'; + public $flag = 'sagernet'; private $servers; private $user; @@ -74,7 +74,7 @@ class AnXray } if ((string)$server['network'] === 'ws') { $wsSettings = $server['networkSettings']; - if (isset($wsSettings['path'])) $config['path'] = urlencode($wsSettings['path']); + if (isset($wsSettings['path'])) $config['path'] = $wsSettings['path']; if (isset($wsSettings['headers']['Host'])) $config['host'] = urlencode($wsSettings['headers']['Host']); } if ((string)$server['network'] === 'grpc') {