Skip to content

Commit

Permalink
Listen on localhost when operating in push mode
Browse files Browse the repository at this point in the history
  • Loading branch information
apetruhin committed Apr 22, 2024
1 parent ca6fba4 commit 1b6a8fd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions flags/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,8 @@ func init() {
*ProfilesEndpoint = u.JoinPath("/v1/profiles")
}
}

if *MetricsEndpoint != nil {
*ListenAddress = "127.0.0.1:10300"
}
}

0 comments on commit 1b6a8fd

Please sign in to comment.