diff options
author | Renato Botelho <renato@netgate.com> | 2017-05-15 10:10:58 -0300 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2017-05-15 10:10:58 -0300 |
commit | f577569455e2115a3dfda05d31a6894555d94732 (patch) | |
tree | 068a5d68a5721baa2c0eeea9594b91b37de12318 /src | |
parent | 6c2f38f4b6f81718d60f0bdb61455c2d0bdb66b5 (diff) | |
parent | 425656522f01ea6fe5f702c4b3b16a628054869e (diff) | |
download | pfsense-f577569455e2115a3dfda05d31a6894555d94732.zip pfsense-f577569455e2115a3dfda05d31a6894555d94732.tar.gz |
Merge pull request #3604 from enukane/fix/openvpn-ipv6-remote-netmask-0-treated-as-128
Diffstat (limited to 'src')
-rw-r--r-- | src/etc/inc/openvpn.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/etc/inc/openvpn.inc b/src/etc/inc/openvpn.inc index 1b8c8e4..8e34b89 100644 --- a/src/etc/inc/openvpn.inc +++ b/src/etc/inc/openvpn.inc @@ -1957,7 +1957,7 @@ function openvpn_gen_route_ipv4($network, $iroute = false) { function openvpn_gen_route_ipv6($network, $iroute = false) { $i = ($iroute) ? "i" : ""; list($ipv6, $prefix) = explode('/', trim($network)); - if (empty($prefix)) { + if (empty($prefix) && !($prefix === "0")) { $prefix = "128"; } return "{$i}route-ipv6 ${ipv6}/${prefix}"; |