mirror of
https://github.com/caddyserver/caddy.git
synced 2025-01-14 14:56:27 +03:00
caddytls: Fix MatchRemoteIP
provisoning with multiple CIDR ranges (#4522)
This commit is contained in:
parent
850e1605df
commit
66de438a98
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue