From c9164a4d8ad892f3e270d8dc61344392d1a113ae Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Mon, 17 Sep 2018 11:11:25 +0200 Subject: [PATCH] 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 --- net/chrony/Makefile | 2 +- net/chrony/files/chronyd.init | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/net/chrony/Makefile b/net/chrony/Makefile index 4bfdb0a00..d67306109 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 f7aee0a6a..492f755ff 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