Skip to content

Commit

Permalink
server: Inject BIND_ADDRESS only if given
Browse files Browse the repository at this point in the history
  • Loading branch information
iBug committed Jul 15, 2024
1 parent 76073d8 commit 8ec7fce
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/server/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,9 @@ func (s *Server) syncRepo(ctx context.Context, name string, debug bool) error {
}
envMap["REPO"] = repo.Name
envMap["OWNER"] = repo.User
envMap["BIND_ADDRESS"] = repo.BindIP
if repo.BindIP != "" {
envMap["BIND_ADDRESS"] = repo.BindIP
}
envMap["RETRY"] = strconv.Itoa(repo.Retry)
envMap["LOG_ROTATE_CYCLE"] = strconv.Itoa(repo.LogRotCycle)
if debug {
Expand Down

0 comments on commit 8ec7fce

Please sign in to comment.