Add missing setConfigValue() branch.

This caused a crash when setting `PAGES_AUDIT_NODE_ID` or using
`-print-config-env-vars`.
This commit is contained in:
Catherine
2025-12-03 06:03:51 +00:00
parent 95c4f1041d
commit 955af0d589

View File

@@ -205,6 +205,11 @@ func setConfigValue(reflValue reflect.Value, repr string) (err error) {
if valueCast, err = strconv.ParseBool(repr); err == nil {
reflValue.SetBool(valueCast)
}
case int:
var parsed int64
if parsed, err = strconv.ParseInt(repr, 10, strconv.IntSize); err == nil {
reflValue.SetInt(parsed)
}
case uint:
var parsed uint64
if parsed, err = strconv.ParseUint(repr, 10, strconv.IntSize); err == nil {