mirror of
https://github.com/MatsuriDayo/nekoray.git
synced 2025-12-17 20:44:38 +03:00
refactor custom json
This commit is contained in:
@@ -11,14 +11,12 @@ namespace NekoRay::fmt {
|
||||
QString security = "auto";
|
||||
|
||||
QSharedPointer<V2rayStreamSettings> stream = QSharedPointer<V2rayStreamSettings>(new V2rayStreamSettings());
|
||||
QString custom = "";
|
||||
|
||||
VMessBean() : AbstractBean(0) {
|
||||
_add(new configItem("id", &uuid, itemType::string));
|
||||
_add(new configItem("aid", &aid, itemType::integer));
|
||||
_add(new configItem("sec", &security, itemType::string));
|
||||
_add(new configItem("stream", dynamic_cast<JsonStore *>(stream.get()), itemType::jsonStore));
|
||||
_add(new configItem("custom", &custom, itemType::string));
|
||||
};
|
||||
|
||||
QString DisplayType() override { return "VMess"; };
|
||||
|
||||
Reference in New Issue
Block a user