From 66de438a98989135dc1e4ce5aeb0c4bc98af8049 Mon Sep 17 00:00:00 2001 From: GallopingKylin <16204390+GallopingKylin@users.noreply.github.com> Date: Thu, 13 Jan 2022 08:56:18 -0800 Subject: caddytls: Fix `MatchRemoteIP` provisoning with multiple CIDR ranges (#4522) --- modules/caddytls/matchers.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules') diff --git a/modules/caddytls/matchers.go b/modules/caddytls/matchers.go index aee0e72..d41492f 100644 --- a/modules/caddytls/matchers.go +++ b/modules/caddytls/matchers.go @@ -86,14 +86,14 @@ func (m *MatchRemoteIP) Provision(ctx caddy.Context) error { if err != nil { return err } - m.cidrs = cidrs + m.cidrs = append(m.cidrs, cidrs...) } for _, str := range m.NotRanges { cidrs, err := m.parseIPRange(str) if err != nil { return err } - m.notCidrs = cidrs + m.notCidrs = append(m.notCidrs, cidrs...) } return nil } -- cgit v1.2.3