mirror of
https://github.com/pomerium/pomerium.git
synced 2025-06-01 10:22:43 +02:00
Prevent nil pointer when reloading in single service mode
This commit is contained in:
parent
e8b0bcead6
commit
30243097d2
5 changed files with 15 additions and 0 deletions
|
@ -321,5 +321,8 @@ func (p *Proxy) newReverseProxyHandler(rp *httputil.ReverseProxy, route *config.
|
|||
|
||||
// UpdateOptions updates internal structures based on config.Options
|
||||
func (p *Proxy) UpdateOptions(o config.Options) error {
|
||||
if p == nil {
|
||||
return nil
|
||||
}
|
||||
return p.UpdatePolicies(&o)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue