mirror of
https://github.com/asdlokj1qpi233/subconverter.git
synced 2025-10-29 12:52:37 +00:00
Compare commits
1 Commits
d22cd9b50a
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
add52ec9cb |
@@ -1236,6 +1236,9 @@ void explodeClash(Node yamlnode, std::vector<Proxy> &nodes) {
|
||||
singleproxy["ws-opts"]["path"])
|
||||
: "/";
|
||||
singleproxy["ws-opts"]["headers"]["Host"] >>= host;
|
||||
if (host.empty()) {
|
||||
singleproxy["ws-opts"]["headers"]["host"] >>= host;
|
||||
}
|
||||
singleproxy["ws-opts"]["headers"]["Edge"] >>= edge;
|
||||
} else {
|
||||
path = singleproxy["ws-path"].IsDefined()
|
||||
@@ -1428,6 +1431,9 @@ void explodeClash(Node yamlnode, std::vector<Proxy> &nodes) {
|
||||
singleproxy["ws-opts"]["path"])
|
||||
: "/";
|
||||
singleproxy["ws-opts"]["headers"]["Host"] >>= host;
|
||||
if (host.empty()) {
|
||||
singleproxy["ws-opts"]["headers"]["host"] >>= host;
|
||||
}
|
||||
singleproxy["ws-opts"]["headers"]["Edge"] >>= edge;
|
||||
if (singleproxy["ws-opts"]["v2ray-http-upgrade"].IsDefined()) {
|
||||
v2ray_http_upgrade = safe_as<std::string>(singleproxy["ws-opts"]["v2ray-http-upgrade"]);
|
||||
|
||||
Reference in New Issue
Block a user