Skip to content

Commit

Permalink
fix(gui): trojan with no obfuscation won't be selected (v2rayA#1544)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhullyb authored Oct 25, 2024
1 parent ae89afe commit 824d7e5
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions gui/src/components/modalServer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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 || "/";
}
Expand Down

0 comments on commit 824d7e5

Please sign in to comment.