This commit is contained in:
arm64v8a
2022-09-27 12:39:40 +08:00
parent 94c893b194
commit e44279742c
12 changed files with 193 additions and 101 deletions

View File

@@ -52,12 +52,10 @@ namespace NekoRay::fmt {
outbound["server"] = serverAddress;
outbound["server_port"] = serverPort;
QJsonArray users;
QJsonObject user;
user["username"] = username;
user["password"] = password;
users.push_back(user);
if (!username.isEmpty() && !password.isEmpty()) outbound["users"] = users;
if (!username.isEmpty() && !password.isEmpty()) {
outbound["username"] = username;
outbound["password"] = password;
}
stream->BuildStreamSettingsSingBox(&outbound);
result.outbound = outbound;