refactor: thread interface name through LocalSocketController

This commit is contained in:
cd-amn
2026-05-18 16:47:04 +00:00
parent b47f9e8c85
commit a1079d3746
4 changed files with 50 additions and 6 deletions
+2 -1
View File
@@ -12,7 +12,8 @@
WireguardProtocol::WireguardProtocol(const QJsonObject &configuration, QObject *parent)
: VpnProtocol(configuration, parent)
{
m_impl.reset(new LocalSocketController());
const QString ifname = configuration.value("ifname").toString();
m_impl.reset(new LocalSocketController(ifname));
connect(m_impl.get(), &ControllerImpl::connected, this,
[this](const QString &pubkey, const QDateTime &connectionTimestamp) {
setConnectionState(Vpn::ConnectionState::Connected);