mirror of
https://github.com/pomerium/pomerium.git
synced 2025-05-09 15:17:39 +02:00
proxy: avoid second policy validation (#1204)
This commit is contained in:
parent
7a53e6bb42
commit
202b42f307
2 changed files with 0 additions and 9 deletions
|
@ -157,9 +157,6 @@ func New(opts config.Options) (*Proxy, error) {
|
|||
}
|
||||
p.authzClient = envoy_service_auth_v2.NewAuthorizationClient(authzConn)
|
||||
|
||||
if err := p.UpdatePolicies(&opts); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
metrics.AddPolicyCountCallback("pomerium-proxy", func() int64 {
|
||||
return int64(len(opts.Policies))
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue