create: Fix jail not applying IP when IP already in use

This commit is contained in:
tschettervictor
2025-04-14 20:46:43 -06:00
committed by GitHub
parent de7fd2c928
commit 8e559b6114

View File

@@ -92,10 +92,9 @@ validate_ip() {
done
if ifconfig | grep -qwF "${TEST_IP}"; then
warn "Warning: IP address already in use (${TEST_IP})."
else
ipx_addr="ip4.addr"
info "Valid: (${_ip})."
fi
ipx_addr="ip4.addr"
info "Valid: (${_ip})."
else
error_continue "Invalid: (${_ip})."
fi