renamed amneziawireguard to awg in ios controller
This commit is contained in:
parent
671ca0a66f
commit
445fc6efb1
2 changed files with 5 additions and 5 deletions
|
@ -62,7 +62,7 @@ private:
|
||||||
bool setupOpenVPN();
|
bool setupOpenVPN();
|
||||||
bool setupCloak();
|
bool setupCloak();
|
||||||
bool setupWireGuard();
|
bool setupWireGuard();
|
||||||
bool setupAmneziaWireGuard();
|
bool setupAwg();
|
||||||
|
|
||||||
bool startOpenVPN(const QString &config);
|
bool startOpenVPN(const QString &config);
|
||||||
bool startWireGuard(const QString &jsonConfig);
|
bool startWireGuard(const QString &jsonConfig);
|
||||||
|
|
|
@ -204,8 +204,8 @@ bool IosController::connectVpn(amnezia::Proto proto, const QJsonObject& configur
|
||||||
if (proto == amnezia::Proto::WireGuard) {
|
if (proto == amnezia::Proto::WireGuard) {
|
||||||
return setupWireGuard();
|
return setupWireGuard();
|
||||||
}
|
}
|
||||||
if (proto == amnezia::Proto::AmneziaWireGuard) {
|
if (proto == amnezia::Proto::Awg) {
|
||||||
return setupAmneziaWireGuard();
|
return setupAwg();
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
@ -310,9 +310,9 @@ bool IosController::setupWireGuard()
|
||||||
return startWireGuard(wgConfig);
|
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();
|
QString wgConfig = config[config_key::config].toString();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue