Fix some client does not recognize integer port or alter id (#371)

This commit is contained in:
Tindy X committed 2021-12-17 21:29:20 +08:00
1 parent a24be60d78
commit e840006e74
1 file changed
+2 -2
+2 -2
View File
@@ -45,13 +45,13 @@ std::string vmessLinkConstruct(const std::string &remarks, const std::string &ad
writer.Key("add");
writer.String(add.data());
writer.Key("port");
writer.Int(to_int(port));
writer.String(port.data());
writer.Key("type");
writer.String(type.empty() ? "none" : type.data());
writer.Key("id");
writer.String(id.data());
writer.Key("aid");
writer.Int(to_int(aid));
writer.String(aid.data());
writer.Key("net");
writer.String(net.empty() ? "tcp" : net.data());
writer.Key("path");