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

Avoid references to rd.Port and rd.Host until after they are initialized. #51

Merged
merged 1 commit into from
Nov 6, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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