mirror of
https://github.com/Mahdi-zarei/nekoray.git
synced 2026-01-06 21:36:02 +08:00
fix: Use default routing rules when testing
This commit is contained in:
parent
88afb27c42
commit
6dfd06a771
@ -152,6 +152,15 @@ namespace NekoGui {
|
||||
}
|
||||
dnsObj["rules"] = dnsRulesObj;
|
||||
results->coreConfig["dns"] = dnsObj;
|
||||
std::map<int, QString> outboundMap;
|
||||
outboundMap[-1] = "proxy";
|
||||
outboundMap[-2] = "direct";
|
||||
outboundMap[-3] = "block";
|
||||
outboundMap[-4] = "dns-out";
|
||||
results->coreConfig["route"] = QJsonObject{
|
||||
{"rules", NekoGui::RoutingChain::GetDefaultChain()->get_route_rules(false, outboundMap)},
|
||||
{"auto_detect_interface", true}
|
||||
};
|
||||
|
||||
return results;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user