summaryrefslogtreecommitdiffhomepage
path: root/context.go
diff options
context:
space:
mode:
authordev <[email protected]>2019-05-14 10:35:41 -0400
committerdev <[email protected]>2019-05-20 14:48:26 -0400
commit043eb1d9e5db456b9b78c0423cb44716fc81a932 (patch)
treea78aee0752b03c4f3c3cb45d409107e64faa10e3 /context.go
parentfec7fa8bfda713e8042b9bbf9a480c7792b78c41 (diff)
downloadcaddy-043eb1d9e5db456b9b78c0423cb44716fc81a932.tar.gz
caddy-043eb1d9e5db456b9b78c0423cb44716fc81a932.zip
move internal packages to pkg folder and update reverse proxy
* set automatic https error type for cert-magic failures * add state to onload and unload methods * update reverse proxy to use Provision() and Cleanup()
Diffstat (limited to 'context.go')
-rw-r--r--context.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/context.go b/context.go
index cfb183a22..e437f08ca 100644
--- a/context.go
+++ b/context.go
@@ -39,6 +39,7 @@ func NewContext(ctx Context) (Context, context.CancelFunc) {
c, cancel := context.WithCancel(ctx.Context)
wrappedCancel := func() {
cancel()
+
for modName, modInstances := range newCtx.moduleInstances {
for _, inst := range modInstances {
if cu, ok := inst.(CleanerUpper); ok {