From cb9452792096dbd07b3dd8a1dbe153fd33ce1b4e Mon Sep 17 00:00:00 2001 From: Tindy X <49061470+tindy2013@users.noreply.github.com> Date: Thu, 12 Mar 2020 18:45:59 +0800 Subject: [PATCH] Fix a bug that some exported Surfboard configuration may stop working --- src/subexport.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/subexport.cpp b/src/subexport.cpp index 34c287d..369570d 100644 --- a/src/subexport.cpp +++ b/src/subexport.cpp @@ -1021,9 +1021,9 @@ std::string netchToSurge(std::vector &nodes, std::string &base_conf, s proxy = "vmess, " + hostname + ", " + port + ", username=" + id + ", tls=" + (tlssecure ? "true" : "false"); if(transproto == "ws") { - proxy += ", ws=true, ws-path=" + path + ", ws-headers=Host:\"" + host + "\""; + proxy += ", ws=true, ws-path=" + path + ", ws-headers=Host:" + host; if(edge.size()) - proxy += "|Edge:\"" + edge + "\""; + proxy += "|Edge:" + edge; } if(ext.skip_cert_verify) proxy += ", skip-cert-verify=1";