Merge branch 'dev' of github.com:amnezia-vpn/amnezia-client into feature/new-gui
This commit is contained in:
commit
6bb85deca6
4 changed files with 25 additions and 29 deletions
|
@ -231,6 +231,24 @@ QString Settings::routeModeString(RouteMode mode) const
|
|||
}
|
||||
}
|
||||
|
||||
Settings::RouteMode Settings::routeMode() const
|
||||
{
|
||||
// TODO implement for mobiles
|
||||
#if defined(Q_OS_ANDROID) || defined(Q_OS_IOS)
|
||||
return RouteMode::VpnAllSites;
|
||||
#endif
|
||||
return static_cast<RouteMode>(m_settings.value("Conf/routeMode", 0).toInt());
|
||||
}
|
||||
|
||||
Settings::RouteMode Settings::routeMode() const
|
||||
{
|
||||
// TODO implement for mobiles
|
||||
#if defined(Q_OS_ANDROID) || defined(Q_OS_IOS)
|
||||
return RouteMode::VpnAllSites;
|
||||
#endif
|
||||
return static_cast<RouteMode>(m_settings.value("Conf/routeMode", 0).toInt());
|
||||
}
|
||||
|
||||
bool Settings::addVpnSite(RouteMode mode, const QString &site, const QString &ip)
|
||||
{
|
||||
QVariantMap sites = vpnSites(mode);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue