root 5 years ago
parent
commit
551073cb83
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/Utils/Helper.php

+ 1 - 1
app/Utils/Helper.php

@@ -65,7 +65,7 @@ class Helper
         if ($item->network == 'ws') {
             $wsSettings = json_decode($item->settings);
             if ($wsSettings->path) $config['path'] = $wsSettings->path;
-            if ($wsSettings->headers) $config['host'] = $wsSettings->headers->host;
+            if ($wsSettings->headers->Host) $config['host'] = $wsSettings->headers->Host;
         }
         return "vmess://".base64_encode(json_encode($config))."\r\n";
     }