Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion run_containerized.sh
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ configure_host_dns() {
local HOST_IP=""

# Method 1: Try to get the primary network interface IP (not loopback)
HOST_IP=$(ip -4 addr show 2>/dev/null | grep -oP '(?<=inet\s)\d+(\.\d+){3}' | grep -v '^127\.' | head -1)
HOST_IP=$(ip -4 addr show 2>/dev/null | grep 'inet ' | awk '{print $2}' | cut -d/ -f1 | grep -v '^127\.' | head -1)
if [ -n "$HOST_IP" ]; then
log_info "Method 1 (primary interface): $HOST_IP"
fi
Expand Down