mirror of
https://github.com/Qv2ray/Qv2ray.git
synced 2025-05-19 10:20:49 +08:00
fix: feel free to use empty host with http/h2 in your vmess
This commit is contained in:
parent
e11b609d6b
commit
ac480eb396
@ -1 +1 @@
|
||||
4716
|
||||
4718
|
||||
|
@ -234,7 +234,10 @@ namespace Qv2ray::core::connection
|
||||
// Fill hosts for HTTP
|
||||
for (auto _host : host.split(','))
|
||||
{
|
||||
streaming.httpSettings.host.push_back(_host.trimmed());
|
||||
if (!_host.isEmpty())
|
||||
{
|
||||
streaming.httpSettings.host.push_back(_host.trimmed());
|
||||
}
|
||||
}
|
||||
|
||||
streaming.httpSettings.path = path;
|
||||
@ -271,7 +274,8 @@ namespace Qv2ray::core::connection
|
||||
//
|
||||
// Network type
|
||||
// NOTE(DuckSoft): Damn vmess:// just don't write 'http' properly
|
||||
if (net == "h2") net = "http";
|
||||
if (net == "h2")
|
||||
net = "http";
|
||||
streaming.network = net;
|
||||
//
|
||||
// WARN Mux is missing here.
|
||||
|
Loading…
Reference in New Issue
Block a user