void-packages/srcpkgs/vpnc-scripts/patches/fix-ipv6.patch

17 lines
581 B
Diff

--- vpnc-script 2018-02-26 15:22:35.000000000 +0000
+++ vpnc-script 2018-08-06 12:02:25.418113014 +0100
@@ -881,10 +881,10 @@ do_connect() {
while [ $i -lt $CISCO_IPV6_SPLIT_INC ] ; do
eval NETWORK="\${CISCO_IPV6_SPLIT_INC_${i}_ADDR}"
eval NETMASKLEN="\${CISCO_IPV6_SPLIT_INC_${i}_MASKLEN}"
- if [ $NETMASKLEN -lt 128 ]; then
- set_ipv6_network_route "$NETWORK" "$NETMASKLEN" "$TUNDEV"
- else
+ if [ $NETMASKLEN -eq 0 ]; then
set_ipv6_default_route
+ else
+ set_ipv6_network_route "$NETWORK" "$NETMASKLEN" "$TUNDEV"
fi
i=`expr $i + 1`
done