Mullvad: configurable ipv6 tunneling (#253)

- Disabled by default
- Wiki pages updated
- Readme updated
This commit is contained in:
Quentin McGaw
2020-09-26 09:33:24 -04:00
committed by GitHub
parent ae876b93d7
commit ecf76896a2
8 changed files with 28 additions and 2 deletions

View File

@@ -81,3 +81,9 @@ func (r *reader) GetOpenVPNCipher() (cipher string, err error) {
func (r *reader) GetOpenVPNAuth() (auth string, err error) {
return r.envParams.GetEnv("OPENVPN_AUTH")
}
// GetOpenVPNIPv6 obtains if ipv6 should be tunneled through the
// openvpn tunnel from the environment variable OPENVPN_IPV6
func (r *reader) GetOpenVPNIPv6() (ipv6 bool, err error) {
return r.envParams.GetOnOff("OPENVPN_IPV6", libparams.Default("off"))
}