HelperScripts-for-ProxmoxVE/misc
CanbiZ (MickLesk) eb596d2364
core: add IPv6 fallback support to get_current_ip functions | add check for SSH_KEYS_FILE in user_defaults (#11067)
* fix(core): add IPv6 fallback support to get_current_ip functions

Fixes IP detection in IPv6-only environments by adding fallback:
- Try IPv4 first (existing behavior)
- Fall back to IPv6 via interface lookup (eth0 scope global)
- Fall back to IPv6 routing with Google/Cloudflare DNS targets

Closes #issue-ipv6-only-environment

* fix(build): use SSH_AUTHORIZED_KEY from user defaults when no SSH_KEYS_FILE exists

When using 'User Defaults' with var_ssh_authorized_key set in default.vars,
the SSH key was not being installed because install_ssh_keys_into_ct() only
checked for SSH_KEYS_FILE (which is only created in Advanced Settings).

Now the function also checks SSH_AUTHORIZED_KEY and creates a temporary
SSH_KEYS_FILE if needed.

Fixes #11062
2026-01-23 09:05:17 +01:00
..
images remove old files and assets (#9991) 2025-12-15 17:37:26 +01:00
alpine-install.func Call get_lxc_ip explicitly after network is up 2026-01-19 17:40:25 +01:00
alpine-tools.func Three-tier defaults system | security improvements | error_handler | improved logging | improved container creation | improved architecture (#9540) 2025-12-04 07:52:18 +01:00
api.func chore: bump copyright to 2026 - happy new year (#10585) 2026-01-06 13:28:12 +01:00
build.func core: add IPv6 fallback support to get_current_ip functions | add check for SSH_KEYS_FILE in user_defaults (#11067) 2026-01-23 09:05:17 +01:00
cloud-init.func chore: bump copyright to 2026 - happy new year (#10585) 2026-01-06 13:28:12 +01:00
core.func core: add IPv6 fallback support to get_current_ip functions | add check for SSH_KEYS_FILE in user_defaults (#11067) 2026-01-23 09:05:17 +01:00
error_handler.func chore: bump copyright to 2026 - happy new year (#10585) 2026-01-06 13:28:12 +01:00
install.func Call get_lxc_ip explicitly after network is up 2026-01-19 17:40:25 +01:00
tools.func core: add IPv6 fallback support to get_current_ip functions | add check for SSH_KEYS_FILE in user_defaults (#11067) 2026-01-23 09:05:17 +01:00