Upload relayclient.cpp
This commit is contained in:
parent
69d91ce9e4
commit
20bdd6b34a
1 changed files with 3 additions and 7 deletions
|
|
@ -139,13 +139,9 @@ void RelayClient::onProvisionReply(QNetworkReply *reply)
|
|||
m_settings->setValue(QStringLiteral("vpn/peer_id"), m_vpnPeerId);
|
||||
m_settings->setValue(QStringLiteral("vpn/relay_url"), m_relayUrl.toString());
|
||||
|
||||
WireGuardConfig cfg = WireGuardConfig::fromConf(conf);
|
||||
if (!cfg.isValid()) {
|
||||
emit vpnProvisionFailed(QStringLiteral("Received malformed .conf from server"));
|
||||
return;
|
||||
}
|
||||
|
||||
emit vpnProvisioned(cfg);
|
||||
RelayVPNConf vpnConf;
|
||||
vpnConf.conf = conf;
|
||||
emit vpnProvisioned(vpnConf);
|
||||
}
|
||||
|
||||
// ─── revokeVPN() ─────────────────────────────────────────────────────────────
|
||||
|
|
|
|||
Loading…
Reference in a new issue