renamed amneziawireguard to awg in ios controller

This commit is contained in:
vladimir.kuznetsov 2023-10-06 22:05:48 +05:00
parent 671ca0a66f
commit 445fc6efb1
2 changed files with 5 additions and 5 deletions

View file

@ -62,7 +62,7 @@ private:
bool setupOpenVPN();
bool setupCloak();
bool setupWireGuard();
bool setupAmneziaWireGuard();
bool setupAwg();
bool startOpenVPN(const QString &config);
bool startWireGuard(const QString &jsonConfig);

View file

@ -204,8 +204,8 @@ bool IosController::connectVpn(amnezia::Proto proto, const QJsonObject& configur
if (proto == amnezia::Proto::WireGuard) {
return setupWireGuard();
}
if (proto == amnezia::Proto::AmneziaWireGuard) {
return setupAmneziaWireGuard();
if (proto == amnezia::Proto::Awg) {
return setupAwg();
}
return false;
@ -310,9 +310,9 @@ bool IosController::setupWireGuard()
return startWireGuard(wgConfig);
}
bool IosController::setupAmneziaWireGuard()
bool IosController::setupAwg()
{
QJsonObject config = m_rawConfig[ProtocolProps::key_proto_config_data(amnezia::Proto::AmneziaWireGuard)].toObject();
QJsonObject config = m_rawConfig[ProtocolProps::key_proto_config_data(amnezia::Proto::Awg)].toObject();
QString wgConfig = config[config_key::config].toString();