mirror of
https://github.com/MetaCubeX/subconverter.git
synced 2025-11-04 18:19:42 +08: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:
parent
7d9881b9bc
commit
a7e441a2fe
@ -754,7 +754,9 @@ std::string proxyToSurge(std::vector<Proxy> &nodes, const std::string &base_conf
|
||||
case ProxyType::Snell:
|
||||
proxy = "snell, " + hostname + ", " + port + ", psk=" + password;
|
||||
if(!obfs.empty())
|
||||
proxy += ", obfs=" + obfs + ", obfs-host=" + host;
|
||||
proxy += ", obfs=" + obfs;
|
||||
if(!host.empty())
|
||||
proxy += ", obfs-host=" + host;
|
||||
break;
|
||||
default:
|
||||
continue;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user