From d0716f9e629bfdf7f90923e063ffb650fd9f8f48 Mon Sep 17 00:00:00 2001 From: Zach Reyes <39203661+zasweq@users.noreply.github.com> Date: Mon, 16 Dec 2024 00:49:44 -0500 Subject: [PATCH] examples/features/csm_observability: Make CSM Observability example server listen on an IPV4 address (#7933) --- examples/features/csm_observability/server/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/features/csm_observability/server/main.go b/examples/features/csm_observability/server/main.go index 3cafe23316b3..7a87517cbde6 100644 --- a/examples/features/csm_observability/server/main.go +++ b/examples/features/csm_observability/server/main.go @@ -66,7 +66,7 @@ func main() { cleanup := csm.EnableObservability(context.Background(), opentelemetry.Options{MetricsOptions: opentelemetry.MetricsOptions{MeterProvider: provider}}) defer cleanup() - lis, err := net.Listen("tcp", ":"+*port) + lis, err := net.Listen("tcp4", "0.0.0.0:"+*port) if err != nil { log.Fatalf("Failed to listen: %v", err) }