mirror of
https://github.com/Qv2ray/Qv2ray.git
synced 2025-05-20 10:50:23 +08:00
fix: fixed disableSystemRoot option
This commit is contained in:
parent
389b29d105
commit
1b00fc3e62
@ -1 +1 @@
|
|||||||
6011
|
6012
|
||||||
|
@ -10,14 +10,14 @@ namespace Qv2ray::core::connection
|
|||||||
QList<QPair<QString, CONFIGROOT>> ConvertConfigFromString(const QString &link, QString *aliasPrefix, QString *errMessage, QString *newGroup)
|
QList<QPair<QString, CONFIGROOT>> ConvertConfigFromString(const QString &link, QString *aliasPrefix, QString *errMessage, QString *newGroup)
|
||||||
{
|
{
|
||||||
const auto TLSOptionsFilter = [](QJsonObject &conf) {
|
const auto TLSOptionsFilter = [](QJsonObject &conf) {
|
||||||
auto allowInsecure = GlobalConfig.advancedConfig.setAllowInsecure;
|
const auto allowInsecure = GlobalConfig.advancedConfig.setAllowInsecure;
|
||||||
auto setSR = GlobalConfig.advancedConfig.setSessionResumption;
|
const auto setSR = GlobalConfig.advancedConfig.setSessionResumption;
|
||||||
auto disableSystemRoot = GlobalConfig.advancedConfig.disableSystemRoot;
|
const auto disableSystemRoot = GlobalConfig.advancedConfig.disableSystemRoot;
|
||||||
for (const QString &prefix : { "tls", "xtls" })
|
for (const QString &prefix : { "tls", "xtls" })
|
||||||
{
|
{
|
||||||
QJsonIO::SetValue(conf, allowInsecure, { "outbounds", 0, "streamSettings", prefix + "Settings", "allowInsecure" });
|
QJsonIO::SetValue(conf, allowInsecure, { "outbounds", 0, "streamSettings", prefix + "Settings", "allowInsecure" });
|
||||||
QJsonIO::SetValue(conf, !setSR, { "outbounds", 0, "streamSettings", prefix + "Settings", "disableSessionResumption" });
|
QJsonIO::SetValue(conf, !setSR, { "outbounds", 0, "streamSettings", prefix + "Settings", "disableSessionResumption" });
|
||||||
QJsonIO::SetValue(conf, !disableSystemRoot, { "outbounds", 0, "streamSettings", prefix + "Settings", "disableSystemRoot" });
|
QJsonIO::SetValue(conf, disableSystemRoot, { "outbounds", 0, "streamSettings", prefix + "Settings", "disableSystemRoot" });
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user