fix deserialization

This commit is contained in:
yusing
2025-01-29 11:49:28 +08:00
parent e3e3f1dfdc
commit 4ad6257dab
2 changed files with 49 additions and 33 deletions

View File

@@ -314,7 +314,7 @@ func providerGenerator[CT any, PT challenge.Provider](
) ProviderGenerator {
return func(opt ProviderOpt) (challenge.Provider, E.Error) {
cfg := defaultCfg()
err := U.Deserialize(opt, cfg)
err := U.Deserialize(opt, &cfg)
if err != nil {
return nil, err
}