You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: scripts/container-entrypoint.sh
+24-6Lines changed: 24 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -160,6 +160,23 @@ validate_extra_records() {
160
160
fi
161
161
}
162
162
163
+
#######################################
164
+
# Validate IP address settings
165
+
#######################################
166
+
check_ip_address_settings() {
167
+
check_env_var_or_set_default "IP_ALLOCATION""${headscale_ip_allocation_default}""^(sequential|random)$""Invalid 'IP_ALLOCATION'. Must be either 'sequential' (default) or 'random'."
168
+
check_env_var_or_set_default "IPV6_ONLY""${headscale_ipv6_only_default}""^(true|false)$""Invalid 'IPV6_ONLY'. Must be 'true' or 'false'."
check_env_var_or_set_default "HEADSCALE_OVERRIDE_LOCAL_DNS""true""^(true|false)$""Invalid 'HEADSCALE_OVERRIDE_LOCAL_DNS'. Must be 'true' (default) or 'false'."
174
-
check_env_var_or_set_default "IP_ALLOCATION""${headscale_ip_allocation_default}""^(sequential|random)$""Invalid 'IP_ALLOCATION'. Must be either 'sequential' (default) or 'random'."
0 commit comments