From 824d7e554a3b22beac0e42a3812820104f7bb381 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=AB=B9=E6=9E=97=E9=87=8C=E6=9C=89=E5=86=B0?= Date: Fri, 25 Oct 2024 10:49:27 +0800 Subject: [PATCH] fix(gui): trojan with no obfuscation won't be selected (#1544) --- gui/src/components/modalServer.vue | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/gui/src/components/modalServer.vue b/gui/src/components/modalServer.vue index 557d1a326..a9126e7f9 100644 --- a/gui/src/components/modalServer.vue +++ b/gui/src/components/modalServer.vue @@ -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 || "/"; }