diff options
Diffstat (limited to 'config/openvpn-client-export/openvpn-client-export.inc')
-rwxr-xr-x | config/openvpn-client-export/openvpn-client-export.inc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/config/openvpn-client-export/openvpn-client-export.inc b/config/openvpn-client-export/openvpn-client-export.inc index 48be5f0f..b5850a26 100755 --- a/config/openvpn-client-export/openvpn-client-export.inc +++ b/config/openvpn-client-export/openvpn-client-export.inc @@ -163,6 +163,9 @@ function openvpn_client_export_config($srvid, $usrid, $crtid, $useaddr, $usetoke // add basic settings $conf = "dev tun\n"; + if(! empty($settings['tunnel_networkv6'])) { + $conf .= "tun-ipv6\n"; + } $conf .= "persist-tun\n"; $conf .= "persist-key\n"; $conf .= "proto {$proto}\n"; @@ -554,6 +557,9 @@ function openvpn_client_export_sharedkey_config($srvid, $useaddr, $proxy, $zipco // add basic settings $conf = "dev tun\n"; + if(! empty($settings['tunnel_networkv6'])) { + $conf .= "tun-ipv6\n"; + } $conf .= "persist-tun\n"; $conf .= "persist-key\n"; $conf .= "proto {$proto}\n"; |