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

This commit is contained in:
cd-amn
2026-06-16 20:18:24 +04:00
parent eda9ed8016
commit e9cd043b10
2 changed files with 8 additions and 0 deletions
+2
View File
@@ -26,6 +26,8 @@ bool RouterMac::routeAdd(const QString &ipWithSubnet, const QString &gw)
return false;
}
routeDelete(ipWithSubnet, gw);
QString cmd;
if (mask == "255.255.255.255") {
cmd = QString("route add -host %1 %2").arg(ip).arg(gw);