Prevent nil pointer when reloading in single service mode

This commit is contained in:
Travis Groth 2019-08-01 22:07:17 -04:00
parent e8b0bcead6
commit 30243097d2
5 changed files with 15 additions and 0 deletions

View file

@ -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)
}