This commit is contained in:
root
2020-01-02 23:32:31 +08:00
parent 145f55ae29
commit c6461f0bdf
2 changed files with 4 additions and 2 deletions

View File

@ -48,7 +48,8 @@ class ClientController extends Controller
$uri .= ', obfs=ws';
if ($item->settings) {
$wsSettings = json_decode($item->settings);
if (isset($wsSettings->path)) $uri .= ', obfs-uri='.$wsSettings->path;
if (isset($wsSettings->path)) $uri .= ', obfs-uri=' . $wsSettings->path;
if (isset($wsSettings->headers->Host)) $uri .= ', obfs-host=' . $wsSettings->headers->Host;
}
}
$uri .= "\r\n";