Skip to content
This repository has been archived by the owner on Mar 31, 2024. It is now read-only.

Commit

Permalink
Avoid references to rd.Port and rd.Host until after they are initiali…
Browse files Browse the repository at this point in the history
…zed.
  • Loading branch information
jum committed Nov 2, 2023
1 parent 2691e9e commit 2877188
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion storageredis.go
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ func (rd *RedisStorage) ReplaceEnvConfigCaddy() {
rd.KeyPrefix = repl.ReplaceAll(rd.KeyPrefix, DefaultKeyPrefix)
rd.ValuePrefix = repl.ReplaceAll(rd.ValuePrefix, DefaultValuePrefix)
rd.AesKey = repl.ReplaceAll(rd.AesKey, DefaultAESKey)
rd.Address = configureString(repl.ReplaceAll(rd.Address, ""), "", rd.Host+":"+rd.Port)
rd.Address = configureString(repl.ReplaceAll(rd.Address, ""), "", "")
rd.logger.Debugf("GetConfigValue [%s]:%s", "post", rd)
}

Expand Down

0 comments on commit 2877188

Please sign in to comment.