eBPF-based security platform
otel: accept the IPv6 loopback as a cleartext endpoint
Daniel Borkmann51b544189d4e
diff --git a/util/upatch_maps_otel.c b/util/upatch_maps_otel.cindex 0daea814..aa01ac3a 100644--- a/util/upatch_maps_otel.c+++ b/util/upatch_maps_otel.c@@ -1210,7 +1210,7 @@ static int resolve_endpoint(struct otel_state *st, const char *spec,static bool loopback_host(const char *host){return strcasecmp(host, "localhost") == 0 ||- strcmp(host, "127.0.0.1") == 0 || strcmp(host, "::1") == 0;+ strcmp(host, "127.0.0.1") == 0 || strcmp(host, "[::1]") == 0;}static int validate_endpoint_security(struct otel_state *st)