fix: keep DNS and routing during seamless Xray switch on Linux

This commit is contained in:
cd-amn
2026-06-18 14:29:15 +04:00
parent 8da439f0b3
commit 8c5b4781d5
10 changed files with 61 additions and 6 deletions
+10
View File
@@ -20,6 +20,16 @@ int Router::routeAddList(const QString &gw, const QStringList &ips)
#endif
}
int Router::routeAddListVia(const QString &ifname, const QString &gw, const QStringList &ips)
{
#ifdef Q_OS_LINUX
return RouterLinux::Instance().routeAddListVia(ifname, gw, ips);
#else
Q_UNUSED(ifname)
return routeAddList(gw, ips);
#endif
}
bool Router::clearSavedRoutes()
{
#ifdef Q_OS_WIN