From 4e5c04641a1a1f0f63372be7fbf40b5e48c65cf8 Mon Sep 17 00:00:00 2001 From: pokamest Date: Tue, 20 Feb 2024 10:12:58 -0800 Subject: [PATCH] Fix ipv6 for awg --- client/mozilla/localsocketcontroller.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/mozilla/localsocketcontroller.cpp b/client/mozilla/localsocketcontroller.cpp index 4d5a348b..8583de4e 100644 --- a/client/mozilla/localsocketcontroller.cpp +++ b/client/mozilla/localsocketcontroller.cpp @@ -125,7 +125,9 @@ void LocalSocketController::activate(const QJsonObject &rawConfig) { json.insert("privateKey", wgConfig.value(amnezia::config_key::client_priv_key)); json.insert("deviceIpv4Address", wgConfig.value(amnezia::config_key::client_ip)); // todo review wg ipv6 - // json.insert("deviceIpv6Address", "dead::1"); +#ifndef Q_OS_WINDOWS + json.insert("deviceIpv6Address", "dead::1"); +#endif json.insert("serverPublicKey", wgConfig.value(amnezia::config_key::server_pub_key)); json.insert("serverPskKey", wgConfig.value(amnezia::config_key::psk_key)); json.insert("serverIpv4AddrIn", wgConfig.value(amnezia::config_key::hostName));