Merge pull request #947 from BastilleBSD/tschettervictor-patch-1

create: Fix jail not applying IP when IP already in use
This commit is contained in:
tschettervictor
2025-04-14 20:46:53 -06:00
committed by GitHub

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