mirror of
https://github.com/v2rayA/v2rayA.git
synced 2024-11-25 16:34:19 +08:00
fix(gui): trojan with no obfuscation won't be selected (#1544)
This commit is contained in:
parent
ae89afe878
commit
824d7e554a
@ -1410,16 +1410,8 @@ export default {
|
||||
o.ssCipher = fields[1];
|
||||
o.ssPassword = fields[2];
|
||||
}
|
||||
const obfsMap = {
|
||||
original: "none",
|
||||
"": "none",
|
||||
ws: "websocket",
|
||||
};
|
||||
o.obfs = obfsMap[u.params.type || ""];
|
||||
if (o.obfs === "ws") {
|
||||
if (u.params.type === "ws") {
|
||||
o.obfs = "websocket";
|
||||
}
|
||||
if (o.obfs === "websocket") {
|
||||
o.host = u.params.host || "";
|
||||
o.path = u.params.path || "/";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user