mirror of
https://github.com/Mahdi-zarei/nekoray.git
synced 2025-12-19 05:30:06 +08:00
Workaround sing-box brutal parse bug
This commit is contained in:
parent
c05e155f91
commit
a2cba53700
@ -35,8 +35,9 @@ namespace Configs {
|
|||||||
QJsonObject object;
|
QJsonObject object;
|
||||||
if (!enabled) return object;
|
if (!enabled) return object;
|
||||||
object["enabled"] = enabled;
|
object["enabled"] = enabled;
|
||||||
if (up_mbps > 0) object["up_mbps"] = up_mbps;
|
// sing-box expects both values it seems
|
||||||
if (down_mbps > 0) object["down_mbps"] = down_mbps;
|
object["up_mbps"] = up_mbps <= 0 ? 1 : up_mbps;
|
||||||
|
object["down_mbps"] = down_mbps <= 0 ? 1 : down_mbps;
|
||||||
return object;
|
return object;
|
||||||
}
|
}
|
||||||
BuildResult TcpBrutal::Build()
|
BuildResult TcpBrutal::Build()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user