diff --git a/caddy.go b/caddy.go index d010f630..c43a7c0e 100644 --- a/caddy.go +++ b/caddy.go @@ -157,8 +157,7 @@ func (d *Duration) UnmarshalJSON(b []byte) error { if err != nil { return err } - cd := Duration(dd) - d = &cd + *d = Duration(dd) return nil }