From 85fd3d000c30b4aceed55efda2b7ad5e85a5b5a2 Mon Sep 17 00:00:00 2001 From: DesperadoJ <38433236+DesperadoJ@users.noreply.github.com> Date: Sun, 12 Jul 2020 11:19:38 +0800 Subject: [PATCH] Enable UDP in Clash --- app/Utils/Clash.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/Utils/Clash.php b/app/Utils/Clash.php index 3c699d08..00c5f2a3 100644 --- a/app/Utils/Clash.php +++ b/app/Utils/Clash.php @@ -15,6 +15,7 @@ class Clash $array['uuid'] = $uuid; $array['alterId'] = 2; $array['cipher'] = 'auto'; + $array['udp'] = true; if ($server->tls) { $tlsSettings = json_decode($server->tlsSettings); $array['tls'] = true; @@ -41,6 +42,7 @@ class Clash $array['server'] = $server->host; $array['port'] = $server->port; $array['password'] = $password; + $array['udp'] = true; $array['sni'] = $server->server_name; if ($server->allow_insecure) { $array['skip-cert-verify'] = true;