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

Commit

Permalink
Merge pull request #51 from jum/portfix
Browse files Browse the repository at this point in the history
Avoid references to rd.Port and rd.Host until after they are initialized.
  • Loading branch information
gamalan authored Nov 6, 2023
2 parents 2691e9e + 2877188 commit 553943f
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 553943f

Please sign in to comment.