Config File
This commit is contained in:
parent
cb477e91f1
commit
4cd307543a
@ -324,11 +324,9 @@ config_file() {
|
|||||||
for ((ip_int=start_int; ip_int<=end_int; ip_int++)); do
|
for ((ip_int=start_int; ip_int<=end_int; ip_int++)); do
|
||||||
ip=$(int_to_ip $ip_int)
|
ip=$(int_to_ip $ip_int)
|
||||||
msg_info "Checking IP: $ip"
|
msg_info "Checking IP: $ip"
|
||||||
if ! ping -c 1 -W 1 "$ip" >/dev/null 2>&1; then
|
if ! ping -c 2 -W 1 "$ip" >/dev/null 2>&1; then
|
||||||
[ -n "${SPINNER_PID:-}" ] && kill "$SPINNER_PID" 2>/dev/null && wait "$SPINNER_PID" 2>/dev/null
|
|
||||||
|
|
||||||
NET="$ip/$cidr"
|
NET="$ip/$cidr"
|
||||||
echo -e "${NETWORK}${BOLD}${DGN}Using free IP Address: ${BGN}$NET${CL}"
|
msg_ok "${NETWORK}${BOLD}${DGN}Using free IP Address: ${BGN}$NET${CL}"
|
||||||
sleep 3
|
sleep 3
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user