mirror of
https://github.com/caddyserver/caddy.git
synced 2026-10-09 22:39:01 -04:00
Fix restart on USR1 not loading new Caddyfile
This commit is contained in:
1 parent
6492592b4a
commit
ff82057131
2 files changed
+16
-30
No files matched your search
@@ -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