diff options
author | GallopingKylin <16204390+GallopingKylin@users.noreply.github.com> | 2022-01-13 08:56:18 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-13 11:56:18 -0500 |
commit | 66de438a98989135dc1e4ce5aeb0c4bc98af8049 (patch) | |
tree | 2391080b618c9206ba25d38368a6f418a8ff5ca1 | |
parent | 850e1605df140a0b52d7bd4c3a1c3567a67699e1 (diff) |
caddytls: Fix `MatchRemoteIP` provisoning with multiple CIDR ranges (#4522)
-rw-r--r-- | modules/caddytls/matchers.go | 4 |
1 files changed, 2 insertions, 2 deletions
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 } |