This commit is contained in:
Chris Rice 2023-06-29 08:03:47 -07:00
parent 7263b4c2de
commit 86d9557790
1 changed files with 2 additions and 1 deletions

View File

@ -369,10 +369,11 @@ func (config *Config) setProperty(name, value string, fromLoad bool) error {
announcePort, err := strconv.ParseUint(value, 10, 64) announcePort, err := strconv.ParseUint(value, 10, 64)
if err != nil { if err != nil {
invalid = true invalid = true
} } else {
config._announcePort = int64(announcePort) config._announcePort = int64(announcePort)
} }
} }
}
if invalid { if invalid {
return clientErrorf("Invalid argument '%s' for CONFIG SET '%s'", value, name) return clientErrorf("Invalid argument '%s' for CONFIG SET '%s'", value, name)