mirror of
https://github.com/pomerium/pomerium.git
synced 2025-08-03 08:50:42 +02:00
upstream health check config (#1796)
This commit is contained in:
parent
c90eda5622
commit
4017e0681a
9 changed files with 134 additions and 11 deletions
|
@ -399,7 +399,8 @@ func (o *Options) parsePolicy() error {
|
|||
}
|
||||
// Finish initializing policies
|
||||
for i := range o.Policies {
|
||||
if err := (&o.Policies[i]).Validate(); err != nil {
|
||||
p := &o.Policies[i]
|
||||
if err := p.Validate(); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue