mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-06-23 02:00:20 +07:00
fix: keep DNS and routing during seamless Xray switch on macOS
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user