Skip to content

Commit 1b459f6

Browse files
authored
Merge pull request #10 from cozystack/fix/disable-default-bind-addresses
fix: disable probe and metrics endpoints by default
2 parents bbb3d83 + a39770a commit 1b459f6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ func init() {
3434
func main() {
3535
var probeAddr string
3636
var metricsAddr string
37-
flag.StringVar(&probeAddr, "health-probe-bind-address", ":0", "The address the probe endpoint binds to.")
38-
flag.StringVar(&metricsAddr, "metrics-bind-address", ":0", "The address the metric endpoint binds to.")
37+
flag.StringVar(&probeAddr, "health-probe-bind-address", "0", "The address the probe endpoint binds to. Set to \"0\" to disable.")
38+
flag.StringVar(&metricsAddr, "metrics-bind-address", "0", "The address the metric endpoint binds to. Set to \"0\" to disable.")
3939
opts := zap.Options{
4040
Development: true,
4141
}

0 commit comments

Comments
 (0)