mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-06-22 02:01:08 +07:00
updated linux build
This commit is contained in:
@@ -4,6 +4,8 @@
|
||||
#include "router_win.h"
|
||||
#elif defined (Q_OS_MAC)
|
||||
#include "router_mac.h"
|
||||
#elif defined Q_OS_LINUX
|
||||
#include "router_linux.h"
|
||||
#endif
|
||||
|
||||
|
||||
@@ -13,6 +15,8 @@ int Router::routeAddList(const QString &gw, const QStringList &ips)
|
||||
return RouterWin::Instance().routeAddList(gw, ips);
|
||||
#elif defined (Q_OS_MAC)
|
||||
return RouterMac::Instance().routeAddList(gw, ips);
|
||||
#elif defined Q_OS_LINUX
|
||||
return RouterLinux::Instance().routeAddList(gw, ips);
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -22,6 +26,8 @@ bool Router::clearSavedRoutes()
|
||||
return RouterWin::Instance().clearSavedRoutes();
|
||||
#elif defined (Q_OS_MAC)
|
||||
return RouterMac::Instance().clearSavedRoutes();
|
||||
#elif defined Q_OS_LINUX
|
||||
return RouterLinux::Instance().clearSavedRoutes();
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -31,6 +37,8 @@ int Router::routeDeleteList(const QString &gw, const QStringList &ips)
|
||||
return RouterWin::Instance().routeDeleteList(gw, ips);
|
||||
#elif defined (Q_OS_MAC)
|
||||
return RouterMac::Instance().routeDeleteList(gw, ips);
|
||||
#elif defined Q_OS_LINUX
|
||||
return RouterLinux::Instance().routeDeleteList(gw, ips);
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -40,6 +48,8 @@ void Router::flushDns()
|
||||
RouterWin::Instance().flushDns();
|
||||
#elif defined (Q_OS_MAC)
|
||||
RouterMac::Instance().flushDns();
|
||||
#elif defined Q_OS_LINUX
|
||||
RouterLinux::Instance().flushDns();
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user