From 425656522f01ea6fe5f702c4b3b16a628054869e Mon Sep 17 00:00:00 2001 From: enukane Date: Fri, 3 Mar 2017 10:59:38 +0900 Subject: Fix parsing "::/0" as "::/128" on OpenVPN IPv6 Tunnel Remote network --- src/etc/inc/openvpn.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/etc') diff --git a/src/etc/inc/openvpn.inc b/src/etc/inc/openvpn.inc index 39bcdaf..16a6813 100644 --- a/src/etc/inc/openvpn.inc +++ b/src/etc/inc/openvpn.inc @@ -1929,7 +1929,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}"; -- cgit v1.1