Skip to content

Commit

Permalink
Use combinated validate_ip function for keycloak envVars check
Browse files Browse the repository at this point in the history
Signed-off-by: Louis <covert8@users.noreply.github.com>
  • Loading branch information
covert8 committed Jul 14, 2023
1 parent c6ab2ea commit 2961ad4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ keycloak_validate() {
fi
fi

if ! validate_ipv4 "${KEYCLOAK_BIND_ADDRESS}"; then
if ! validate_ip "${KEYCLOAK_BIND_ADDRESS}"; then
if ! is_hostname_resolved "${KEYCLOAK_BIND_ADDRESS}"; then
print_validation_error print_validation_error "The value for KEYCLOAK_BIND_ADDRESS ($KEYCLOAK_BIND_ADDRESS) should be an IPv4 address or it must be a resolvable hostname"
fi
Expand Down

0 comments on commit 2961ad4

Please sign in to comment.