Explorar el Código

update: quantumult

Tokumeikoi hace 4 años
padre
commit
2063e3c51d
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      app/Http/Controllers/Client/ClientController.php

+ 1 - 1
app/Http/Controllers/Client/ClientController.php

@@ -66,7 +66,7 @@ class ClientController extends Controller
                 if ($item['network'] === 'ws') {
                     $str .= ', obfs=ws';
                     if ($item['networkSettings']) {
-                        $wsSettings = json_decode($item['networkSettings']);
+                        $wsSettings = json_decode($item['networkSettings'], true);
                         if (isset($wsSettings['path'])) $str .= ', obfs-path="' . $wsSettings['path'] . '"';
                         if (isset($wsSettings['headers']['Host'])) $str .= ', obfs-header="Host:' . $wsSettings['headers']['Host'] . '"';
                     }