diff --git a/misc/alpine-install.func b/misc/alpine-install.func index 892d84ee6..3e23ba540 100644 --- a/misc/alpine-install.func +++ b/misc/alpine-install.func @@ -11,6 +11,9 @@ source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxV load_functions catch_errors +# Get LXC IP address (must be called INSIDE container, after network is up) +get_lxc_ip + # This function enables IPv6 if it's not disabled and sets verbose mode verb_ip6() { set_std_mode # Set STD mode based on VERBOSE diff --git a/misc/core.func b/misc/core.func index 5b4351743..ff20efb9b 100644 --- a/misc/core.func +++ b/misc/core.func @@ -38,7 +38,8 @@ load_functions() { icons default_vars set_std_mode - get_lxc_ip + # Note: get_lxc_ip() is NOT called here automatically + # Call it explicitly when you need LOCAL_IP variable } # ------------------------------------------------------------------------------ diff --git a/misc/install.func b/misc/install.func index 0e258adb0..f757e78d1 100644 --- a/misc/install.func +++ b/misc/install.func @@ -37,6 +37,9 @@ source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxV load_functions catch_errors +# Get LXC IP address (must be called INSIDE container, after network is up) +get_lxc_ip + # ============================================================================== # SECTION 2: NETWORK & CONNECTIVITY # ==============================================================================