From 03c11811863ed38a3f77c6f66e011d9bf00453d5 Mon Sep 17 00:00:00 2001 From: alexz Date: Sun, 28 Dec 2025 13:52:20 +0000 Subject: [PATCH] change nic --- apps/rego-tunnel/build/setup-network.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/rego-tunnel/build/setup-network.sh b/apps/rego-tunnel/build/setup-network.sh index 2596f93..5ac3466 100644 --- a/apps/rego-tunnel/build/setup-network.sh +++ b/apps/rego-tunnel/build/setup-network.sh @@ -6,10 +6,10 @@ set -e # Pick the outbound interface based on the container's default route. -# (In Docker, this is not always eth0 when multiple networks are attached.) +# (In Docker, this is not always eth1 when multiple networks are attached.) WAN_IF="$(ip route show default 0.0.0.0/0 2>/dev/null | awk '{for(i=1;i<=NF;i++) if($i=="dev"){print $(i+1); exit}}')" if [ -z "${WAN_IF}" ]; then - WAN_IF="eth0" + WAN_IF="eth1" fi # Create bridge if not exists