From: Miroslav Lichvar Date: Mon, 17 Sep 2018 09:11:25 +0000 (+0200) Subject: chrony: fix configuration of IPv6 client access X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=c9164a4d8ad892f3e270d8dc61344392d1a113ae;p=feed%2Fpackages.git chrony: fix configuration of IPv6 client access 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 --- diff --git a/net/chrony/Makefile b/net/chrony/Makefile index 4bfdb0a004..d67306109e 100644 --- a/net/chrony/Makefile +++ b/net/chrony/Makefile @@ -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/ diff --git a/net/chrony/files/chronyd.init b/net/chrony/files/chronyd.init index f7aee0a6a2..492f755ff1 100644 --- a/net/chrony/files/chronyd.init +++ b/net/chrony/files/chronyd.init @@ -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