Skip to content

Commit

Permalink
Merge pull request #77 from coroot/localhost_in_push_mode
Browse files Browse the repository at this point in the history
Listen on `localhost` when operating in push mode
  • Loading branch information
apetruhin committed Apr 22, 2024
2 parents ca6fba4 + 1b6a8fd commit 8b0243e
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 8b0243e

Please sign in to comment.