Skip to content

Commit

Permalink
fix(openvpn): do not set tun-ipv6
Browse files Browse the repository at this point in the history
- Server should push `tun-ipv6` if it is available
- Add ignore filter for `tun-ipv6` if ipv6 is not supported on client
- Fixes #435
  • Loading branch information
qdm12 committed Sep 14, 2022
1 parent 7fdc7de commit 6a5aa8e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions internal/provider/utils/openvpn.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6a5aa8e

Please sign in to comment.