diff options
-rwxr-xr-x | config/openvpn-client-export/openvpn-client-export.inc | 6 | ||||
-rwxr-xr-x | config/openvpn-client-export/openvpn-client-export.xml | 2 |
2 files changed, 7 insertions, 1 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"; diff --git a/config/openvpn-client-export/openvpn-client-export.xml b/config/openvpn-client-export/openvpn-client-export.xml index d06d50f8..d3816e14 100755 --- a/config/openvpn-client-export/openvpn-client-export.xml +++ b/config/openvpn-client-export/openvpn-client-export.xml @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="utf-8" ?> <packagegui> <name>OpenVPN Client Export</name> - <version>0.8</version> + <version>0.9</version> <title>OpenVPN Client Export</title> <include_file>/usr/local/pkg/openvpn-client-export.inc</include_file> <backup_file></backup_file> |