Send connman mailing list submissions to
[email protected]
To subscribe or unsubscribe via email, send a message with subject or
body 'help' to
[email protected]
You can reach the person managing the list at
[email protected]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of connman digest..."
Today's Topics:
1. [PATCH 0/2] WireGuard.DNS (Daniel Wagner)
2. [PATCH 1/2] vpn-provider: Split nameserver string also by comma
(Daniel Wagner)
3. [PATCH 2/2] wireguard: Add WireGuard.DNS feature (Daniel Wagner)
4. Re: [PATCH 0/2] WireGuard.DNS (Daniel Wagner)
----------------------------------------------------------------------
Date: Tue, 21 Jan 2020 20:57:55 +0100
From: Daniel Wagner <[email protected]>
Subject: [PATCH 0/2] WireGuard.DNS
To: [email protected]
Cc: Daniel Wagner <[email protected]>
Message-ID: <[email protected]>
Add missing WireGuard.DNS config option.
Daniel Wagner (2):
vpn-provider: Split nameserver string also by comma
wireguard: Add WireGuard.DNS feature
doc/vpn-config-format.txt | 3 +++
vpn/plugins/wireguard.c | 7 +++++++
vpn/vpn-provider.c | 2 +-
3 files changed, 11 insertions(+), 1 deletion(-)
--
2.24.1
------------------------------
Date: Tue, 21 Jan 2020 20:57:56 +0100
From: Daniel Wagner <[email protected]>
Subject: [PATCH 1/2] vpn-provider: Split nameserver string also by
comma
To: [email protected]
Cc: Daniel Wagner <[email protected]>
Message-ID: <[email protected]>
Instead only splitting the nameserver string by space, split also by
comma.
---
vpn/vpn-provider.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/vpn/vpn-provider.c b/vpn/vpn-provider.c
index a76061b79633..53131cce5ea0 100644
--- a/vpn/vpn-provider.c
+++ b/vpn/vpn-provider.c
@@ -2852,7 +2852,7 @@ int vpn_provider_set_nameservers(struct vpn_provider
*provider,
if (!nameservers)
return 0;
- provider->nameservers = g_strsplit(nameservers, " ", 0);
+ provider->nameservers = g_strsplit(nameservers, ", ", 0);
return 0;
}
--
2.24.1
------------------------------
Date: Tue, 21 Jan 2020 20:57:57 +0100
From: Daniel Wagner <[email protected]>
Subject: [PATCH 2/2] wireguard: Add WireGuard.DNS feature
To: [email protected]
Cc: Daniel Wagner <[email protected]>
Message-ID: <[email protected]>
Add missing DNS parsing option.
Reported by Christian Hewitt
---
doc/vpn-config-format.txt | 3 +++
vpn/plugins/wireguard.c | 7 +++++++
2 files changed, 10 insertions(+)
diff --git a/doc/vpn-config-format.txt b/doc/vpn-config-format.txt
index 12ac7b73c765..e8f610095cc8 100644
--- a/doc/vpn-config-format.txt
+++ b/doc/vpn-config-format.txt
@@ -282,6 +282,8 @@ WireGuard VPN supports following options
Option name Description
WireGuard.Address Internal IP address
(local/netmask/peer)
WireGuard.ListPort Local listen port (optional)
+ WireGuard.DNS List of nameservers separated
+ by a comma (optional)
WireGuard.PrivateKey Private key of interface
WireGuard.PublicKey Public key of peer
WireGuard.PresharedKey Preshared key of peer (optional)
@@ -336,6 +338,7 @@ Host = 3.2.5.6
Domain = my.home.network
WireGuard.Address = 10.2.0.2/24
WireGuard.ListenPort = 47824
+WireGuard.DNS = 10.2.0.1
WireGuard.PrivateKey = qKIj010hDdWSjQQyVCnEgthLXusBgm3I6HWrJUaJymc=
WireGuard.PublicKey = zzqUfWGIil6QxrAGz77HE5BGUEdD2PgHYnCg3CDKagE=
WireGuard.AllowedIPs = 0.0.0.0/0, ::/0
diff --git a/vpn/plugins/wireguard.c b/vpn/plugins/wireguard.c
index 61d259507342..061be789fa59 100644
--- a/vpn/plugins/wireguard.c
+++ b/vpn/plugins/wireguard.c
@@ -267,6 +267,13 @@ static int wg_connect(struct vpn_provider *provider,
info->device.flags |= WGDEVICE_HAS_LISTEN_PORT;
}
+ option = vpn_provider_get_string(provider, "WireGuard.DNS");
+ if (option) {
+ err = vpn_provider_set_nameservers(provider, option);
+ if (err)
+ goto done;
+ }
+
option = vpn_provider_get_string(provider, "WireGuard.PrivateKey");
if (!option) {
DBG("WireGuard.PrivateKey is missing");
--
2.24.1
------------------------------
Date: Tue, 21 Jan 2020 21:01:01 +0100
From: Daniel Wagner <[email protected]>
Subject: Re: [PATCH 0/2] WireGuard.DNS
To: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=us-ascii
> vpn-provider: Split nameserver string also by comma
> wireguard: Add WireGuard.DNS feature
Patches applied after fixing a type in the docs.
------------------------------
Subject: Digest Footer
_______________________________________________
connman mailing list -- [email protected]
To unsubscribe send an email to [email protected]
------------------------------
End of connman Digest, Vol 51, Issue 26
***************************************