Browse Source

Merge branch 'dev' of https://github.com/v2board/v2board into dev

Tokumeikoi 4 years ago
parent
commit
1f9ebe1ff7
1 changed files with 1 additions and 0 deletions
  1. 1 0
      app/Utils/Clash.php

+ 1 - 0
app/Utils/Clash.php

@@ -19,6 +19,7 @@ class Clash
             $tlsSettings = json_decode($server->tlsSettings);
             $array['tls'] = true;
             if (isset($tlsSettings->allowInsecure)) $array['skip-cert-verify'] = ($tlsSettings->allowInsecure ? true : false );
+            if (isset($tlsSettings->serverName)) $array['servername'] = $tlsSettings->serverName;
         }
         if ($server->network == 'ws') {
             $array['network'] = $server->network;