From 7547b6b4599582d9bda1818ce3d48a60c5665692 Mon Sep 17 00:00:00 2001 From: Shawn <45581750+KOP-XIAO@users.noreply.github.com> Date: Mon, 24 Aug 2020 17:19:45 +0800 Subject: [PATCH] bug fixed --- Scripts/resource-parser.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Scripts/resource-parser.js b/Scripts/resource-parser.js index ca6185e..8dcacdc 100644 --- a/Scripts/resource-parser.js +++ b/Scripts/resource-parser.js @@ -900,15 +900,15 @@ function Pobfs(jsonl, Pcert, Ptls13) { host0 = jsonl.host && jsonl.host != "" ? "obfs-host=" + jsonl.host + "," : ""; obfsi.push(obfs0, host0 + uri0); return obfsi.join(", ") - } else if (jsonl.tls == "tls" && !jsonl.net) { // 过滤掉 h2/http 等类型 + } else if (jsonl.tls == "tls" && jsonl.net == "tcp") { // 过滤掉 h2/http 等类型 obfs0 = "obfs=over-tls, " + tcert + ", " + tls13; uri0 = jsonl.path && jsonl.path != "" ? "obfs-uri=" + jsonl.path : ""; host0 = jsonl.host && jsonl.host != "" ? ", obfs-host=" + jsonl.host : ""; obfsi.push(obfs0 + host0) return obfsi.join(", ") - } else if(jsonl.net){ // 过滤掉 h2/http 等类型 + } else if(jsonl.net !="tcp"){ // 过滤掉 h2/http 等类型 return "NOT-SUPPORTTED" - } + } else {return ""} } //对.的特殊处理(in/out & rename中)