@@ -6,7 +6,7 @@ namespace NekoRay::fmt {
6
6
// https://sing-box.sagernet.org/configuration/shared/v2ray-transport
7
7
8
8
if (network != " tcp" ) {
9
- QJsonObject transport{{" type" , network}, };
9
+ QJsonObject transport{{" type" , network}};
10
10
if (network == " ws" ) {
11
11
if (!path.isEmpty ()) transport[" path" ] = path;
12
12
if (!host.isEmpty ()) transport[" headers" ] = QJsonObject{{" Host" , host}};
@@ -36,8 +36,8 @@ namespace NekoRay::fmt {
36
36
}
37
37
if (!utls.isEmpty ()) {
38
38
tls[" utls" ] = QJsonObject{
39
- {" enabled" , true },
40
- {" fingerprint" , utls},
39
+ {" enabled" , true },
40
+ {" fingerprint" , utls},
41
41
};
42
42
}
43
43
outbound->insert (" tls" , tls);
@@ -88,12 +88,12 @@ namespace NekoRay::fmt {
88
88
CoreObjOutboundBuildResult VMessBean::BuildCoreObjSingBox () {
89
89
CoreObjOutboundBuildResult result;
90
90
QJsonObject outbound{
91
- {" type" , " vmess" },
92
- {" server" , serverAddress},
93
- {" server_port" , serverPort},
94
- {" uuid" , uuid.trimmed ()},
95
- {" alter_id" , aid},
96
- {" security" , security},
91
+ {" type" , " vmess" },
92
+ {" server" , serverAddress},
93
+ {" server_port" , serverPort},
94
+ {" uuid" , uuid.trimmed ()},
95
+ {" alter_id" , aid},
96
+ {" security" , security},
97
97
};
98
98
99
99
stream->BuildStreamSettingsSingBox (&outbound);
@@ -104,9 +104,9 @@ namespace NekoRay::fmt {
104
104
CoreObjOutboundBuildResult TrojanVLESSBean::BuildCoreObjSingBox () {
105
105
CoreObjOutboundBuildResult result;
106
106
QJsonObject outbound{
107
- {" type" , proxy_type == proxy_VLESS ? " vless" : " trojan" },
108
- {" server" , serverAddress},
109
- {" server_port" , serverPort},
107
+ {" type" , proxy_type == proxy_VLESS ? " vless" : " trojan" },
108
+ {" server" , serverAddress},
109
+ {" server_port" , serverPort},
110
110
};
111
111
112
112
QJsonObject settings;
@@ -154,4 +154,4 @@ namespace NekoRay::fmt {
154
154
155
155
return result;
156
156
}
157
- }
157
+ } // namespace NekoRay::fmt
0 commit comments