fix(config): decode *bool so trailing-slash redirect binds from yaml/env

This commit is contained in:
ryan
2026-08-30 11:10:36 +08:00
parent b4c4b0a27e
commit 6f25618e83
4 changed files with 164 additions and 1 deletions
+7
View File
@@ -180,6 +180,13 @@ func formatEntryValue(value any, secret bool) string {
if value == nil {
return ""
}
rv := reflect.ValueOf(value)
if rv.Kind() == reflect.Ptr {
if rv.IsNil() {
return ""
}
return fmt.Sprint(rv.Elem().Interface())
}
return fmt.Sprint(value)
}