mirror of
https://github.com/caddyserver/caddy.git
synced 2026-05-24 08:26:58 -04:00
Fix restart on USR1 not loading new Caddyfile
This commit is contained in:
@@ -51,7 +51,8 @@ var contexts []*httpContext
|
||||
|
||||
func newContext() caddy.Context {
|
||||
context := &httpContext{keysToSiteConfigs: make(map[string]*SiteConfig)}
|
||||
contexts = append(contexts, context)
|
||||
// put the new context at start to allow setup of directives on new instance
|
||||
contexts = append([]*httpContext{context}, contexts...)
|
||||
return context
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user