From 6a5aa8eddb94003445db5e60b94fb05ac4a5979c Mon Sep 17 00:00:00 2001 From: Quentin McGaw Date: Wed, 14 Sep 2022 00:00:11 +0000 Subject: [PATCH] fix(openvpn): do not set `tun-ipv6` - Server should push `tun-ipv6` if it is available - Add ignore filter for `tun-ipv6` if ipv6 is not supported on client - Fixes #435 --- internal/provider/utils/openvpn.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/internal/provider/utils/openvpn.go b/internal/provider/utils/openvpn.go index 14b11e4d..211057bf 100644 --- a/internal/provider/utils/openvpn.go +++ b/internal/provider/utils/openvpn.go @@ -161,9 +161,8 @@ func OpenVPNConfig(provider OpenVPNProviderSettings, lines.add("persist-key") } - if ipv6Supported { - lines.add("tun-ipv6") - } else { + if !ipv6Supported { + lines.add("pull-filter", "ignore", `"tun-ipv6"`) lines.add("pull-filter", "ignore", `"route-ipv6"`) lines.add("pull-filter", "ignore", `"ifconfig-ipv6"`) lines.addLines(provider.IPv6Lines)