root 5 years ago
parent
commit
c935cec6c0
2 changed files with 10 additions and 0 deletions
  1. 10 0
      app/Http/Controllers/ClientController.php
  2. 0 0
      public/umi.js

+ 10 - 0
app/Http/Controllers/ClientController.php

@@ -109,6 +109,16 @@ class ClientController extends Controller
         if ($item->tls) {
           $array['tls'] = true;
         }
+        if ($item->network == 'ws') {
+          $array['network'] = $item->network;
+          if ($item->settings) {
+            $wsSettings = json_decode($item->settings);
+            if ($wsSettings->path) $array['ws-path'] = $wsSettings->path;
+            if ($wsSettings->headers->Host) $array['ws-headers'] = [
+              'Host' => $wsSettings->headers->Host
+            ];
+          }
+        }
         array_push($proxy, $array);
         array_push($proxies, $item->name);
       }

File diff suppressed because it is too large
+ 0 - 0
public/umi.js


Some files were not shown because too many files changed in this diff