mirror of
https://github.com/caddyserver/caddy.git
synced 2026-06-29 21:31:41 +00:00
Fix restart on USR1 not loading new Caddyfile
This commit is contained in:
parent
6492592b4a
commit
ff82057131
2 changed files with 16 additions and 30 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue