Skip to content

Commit

Permalink
MacOS build fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
outspace committed Sep 6, 2023
1 parent f01642c commit ecedcb4
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions client/platforms/macos/daemon/wireguardutilsmacos.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,6 @@ bool WireguardUtilsMacos::addInterface(const InterfaceConfig& config) {
m_tunnel.setProcessEnvironment(pe);

QDir appPath(QCoreApplication::applicationDirPath());
appPath.cdUp();
appPath.cd("Resources");
appPath.cd("utils");
QStringList wgArgs = {"-f", "utun"};
m_tunnel.start(appPath.filePath("wireguard-go"), wgArgs);
if (!m_tunnel.waitForStarted(WG_TUN_PROC_TIMEOUT)) {
Expand Down Expand Up @@ -138,7 +135,7 @@ bool WireguardUtilsMacos::updatePeer(const InterfaceConfig& config) {
QByteArray publicKey =
QByteArray::fromBase64(qPrintable(config.m_serverPublicKey));

logger.debug() << "Configuring peer" << logger.keys(config.m_serverPublicKey)
logger.debug() << "Configuring peer" << config.m_serverPublicKey
<< "via" << config.m_serverIpv4AddrIn;

// Update/create the peer config
Expand Down

0 comments on commit ecedcb4

Please sign in to comment.