From 7ab17487df2927b3f5327430d74f50310b706248 Mon Sep 17 00:00:00 2001 From: Seth Epps <18355267+seth-epps@users.noreply.github.com> Date: Wed, 6 Mar 2024 17:02:20 -0500 Subject: [PATCH] Ignore all loopback IPs in local ip grep (#6245) Signed-off-by: Seth Epps --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 3b5476bfeff..294ebac80ed 100644 --- a/Makefile +++ b/Makefile @@ -12,7 +12,7 @@ GATEWAY_API_VERSION ?= $(shell grep "sigs.k8s.io/gateway-api" go.mod | awk '{pri # Used to supply a local Envoy docker container an IP to connect to that is running # 'contour serve'. On MacOS this will work, but may not on other OSes. Defining # LOCALIP as an env var before running 'make local' will solve that. -LOCALIP ?= $(shell ifconfig | grep inet | grep -v '::' | grep -v 127.0.0.1 | head -n1 | awk '{print $$2}') +LOCALIP ?= $(shell ifconfig | grep inet | grep -v '::' | grep -v 'inet 127.' | head -n1 | awk '{print $$2}') # Variables needed for running e2e tests. CONTOUR_E2E_LOCAL_HOST ?= $(LOCALIP)