mirror of
https://github.com/asdlokj1qpi233/subconverter.git
synced 2026-11-02 01:33:04 +00:00
Do not add obfs-host to Surge Snell node if empty (#626)
* fix surge obfs-host empty error * fix comma error
This commit is contained in:
1 parent
7d9881b9bc
commit
a7e441a2fe
1 file changed
+3
-1
@@ -754,7 +754,9 @@ std::string proxyToSurge(std::vector<Proxy> &nodes, const std::string &base_conf
|
|||||||
case ProxyType::Snell:
|
case ProxyType::Snell:
|
||||||
proxy = "snell, " + hostname + ", " + port + ", psk=" + password;
|
proxy = "snell, " + hostname + ", " + port + ", psk=" + password;
|
||||||
if(!obfs.empty())
|
if(!obfs.empty())
|
||||||
proxy += ", obfs=" + obfs + ", obfs-host=" + host;
|
proxy += ", obfs=" + obfs;
|
||||||
|
if(!host.empty())
|
||||||
|
proxy += ", obfs-host=" + host;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
continue;
|
continue;
|
||||||
|
|||||||
Reference in new issue
Block a user