summaryrefslogtreecommitdiff
path: root/caddyconfig/httpcaddyfile
diff options
context:
space:
mode:
authorMatthew Holt <mholt@users.noreply.github.com>2019-09-13 09:45:10 -0600
committerMatthew Holt <mholt@users.noreply.github.com>2019-09-13 09:45:10 -0600
commitd0c1756fc56dd43cee73ef7ccabb2276a5b26caf (patch)
treed8e2fa2fc9349462cc40254fa4ead1676d62bf9d /caddyconfig/httpcaddyfile
parented40a5dcab80f17d63c3fba83349004eac3c7930 (diff)
httpcaddyfile: Fix tls certificate loader module names (#2748)
Diffstat (limited to 'caddyconfig/httpcaddyfile')
-rw-r--r--caddyconfig/httpcaddyfile/httptype.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/caddyconfig/httpcaddyfile/httptype.go b/caddyconfig/httpcaddyfile/httptype.go
index ce719dd..32791e9 100644
--- a/caddyconfig/httpcaddyfile/httptype.go
+++ b/caddyconfig/httpcaddyfile/httptype.go
@@ -183,7 +183,7 @@ func (st ServerType) Setup(originalServerBlocks []caddyfile.ServerBlock,
if clVals, ok := sblock.pile["tls.certificate_loader"]; ok {
for _, clVal := range clVals {
loader := clVal.Value.(caddytls.CertificateLoader)
- loaderName := caddy.GetModuleName(loader)
+ loaderName := caddy.GetModuleID(loader)
tlsApp.Certificates[loaderName] = caddyconfig.JSON(loader, &warnings)
}
}