summaryrefslogtreecommitdiffhomepage
path: root/caddy.go
diff options
context:
space:
mode:
authorFrancis Lavoie <[email protected]>2023-02-22 13:39:40 -0500
committerGitHub <[email protected]>2023-02-22 11:39:40 -0700
commit79de6df93d0404790c3bfecfefa9e1458ffcff75 (patch)
treeb4056129957e9faaeecebe6e01f3a4101130d862 /caddy.go
parent8bc05e598da0068358a2876c45f92f2c77455341 (diff)
downloadcaddy-79de6df93d0404790c3bfecfefa9e1458ffcff75.tar.gz
caddy-79de6df93d0404790c3bfecfefa9e1458ffcff75.zip
cmd: Strict unmarshal for validate (#5383)
Diffstat (limited to 'caddy.go')
-rw-r--r--caddy.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/caddy.go b/caddy.go
index 5d0152a76..84cfc11cf 100644
--- a/caddy.go
+++ b/caddy.go
@@ -314,7 +314,7 @@ func unsyncedDecodeAndRun(cfgJSON []byte, allowPersist bool) error {
strippedCfgJSON := RemoveMetaFields(cfgJSON)
var newCfg *Config
- err := strictUnmarshalJSON(strippedCfgJSON, &newCfg)
+ err := StrictUnmarshalJSON(strippedCfgJSON, &newCfg)
if err != nil {
return err
}