From caf17cece091dec0d4adc2776d82926f7654d341 Mon Sep 17 00:00:00 2001 From: Vicente Cheng Date: Mon, 18 Dec 2023 18:59:23 +0800 Subject: [PATCH] process: do not enable profiler by default - we use `hostNetwork` because we need to listen uevent. `hostNetwork` will expose any listen ports to host, so we should prevent enable extra ports. Signed-off-by: Vicente Cheng --- main.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/main.go b/main.go index 14592d34..f040c31a 100644 --- a/main.go +++ b/main.go @@ -69,9 +69,8 @@ func main() { }, &cli.StringFlag{ Name: "profile-listen-address", - Value: "0.0.0.0:6060", - DefaultText: "0.0.0.0:6060", - Usage: "Address to listen on for profiling", + Value: "", + Usage: "Address to listen on for profiling, e.g. `:6060`", Destination: &opt.ProfilerAddress, }, &cli.BoolFlag{