chrony: fix configuration of IPv6 client access 7050/head
authorMiroslav Lichvar <mlichvar0@gmail.com>
Mon, 17 Sep 2018 09:11:25 +0000 (11:11 +0200)
committerMiroslav Lichvar <mlichvar0@gmail.com>
Mon, 17 Sep 2018 15:14:30 +0000 (17:14 +0200)
Fix the init script to allow access from IPv6 subnets of the interface
specified in allow section in /etc/config/chrony.

Fixes issue #7039.

Signed-off-by: Miroslav Lichvar <mlichvar0@gmail.com>
net/chrony/Makefile
net/chrony/files/chronyd.init

index 4bfdb0a00460a1bd2a1d79de6d9f375889729da0..d67306109e52fa38c44903c06bce9c04973117af 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=chrony
 PKG_VERSION:=3.3
-PKG_RELEASE:=2
+PKG_RELEASE:=3
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://download.tuxfamily.org/chrony/
index f7aee0a6a25178e292ead2b9d61faed43f508c56..492f755ff1d5073cadbc80788eb6eb5838c26b41 100644 (file)
@@ -36,8 +36,8 @@ handle_allow() {
        elif [ "$wan6_iface" = "$iface" ]; then
                echo allow ::/0
        else
-               network_get_subnets subnets $iface || \
-                       network_get_subnets subnets6 $iface || continue
+               network_get_subnets subnets $iface
+               network_get_subnets6 subnets6 $iface
                for subnet in $subnets $subnets6; do
                        echo allow $subnet
                done