diff --git a/src/generator/config/subexport.cpp b/src/generator/config/subexport.cpp index 6dcb9fc..dbeff7f 100644 --- a/src/generator/config/subexport.cpp +++ b/src/generator/config/subexport.cpp @@ -754,7 +754,9 @@ std::string proxyToSurge(std::vector &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;