optimize nekobox

This commit is contained in:
arm64v8a
2023-03-02 14:45:02 +09:00
parent bbde5bc0e9
commit 7db80352c8
13 changed files with 121 additions and 52 deletions

View File

@@ -853,18 +853,6 @@ namespace NekoRay {
routeObj.remove("auto_detect_interface");
}
status->result->coreConfig.insert("route", routeObj);
// api
if (!status->forTest && !status->forExport && dataStore->traffic_loop_interval > 0) {
status->result->coreConfig.insert("experimental", QJsonObject{
{"v2ray_api", QJsonObject{
{"listen", "127.0.0.1:" + Int2String(dataStore->inbound_socks_port + 10)},
{"stats", QJsonObject{
{"enabled", true},
{"outbounds", QJsonArray{tagProxy, "bypass"}},
}}}},
});
}
}
QString WriteVPNSingBoxConfig() {