support vmess header

This commit is contained in:
arm64v8a
2022-08-29 17:12:18 +08:00
parent 3a053b5ea6
commit a0e42ec28e
7 changed files with 129 additions and 35 deletions

View File

@@ -62,18 +62,17 @@ namespace NekoRay::fmt {
QString VMessBean::ToShareLink() {
QJsonObject N{
{"v", 2},
{"v", "2"},
{"ps", name},
{"add", serverAddress},
{"port", serverPort},
{"port", Int2String(serverPort)},
{"id", uuid},
{"aid", aid},
{"aid", Int2String(aid)},
{"net", stream->network},
{"host", stream->host},
{"path", stream->path},
{"type", stream->header_type},
{"scy", security},
// TODO header type
{"tls", stream->security == "tls" ? "tls" : ""},
{"sni", stream->sni},
};