Skip to content

Commit

Permalink
clone: Fix IP6 mode
Browse files Browse the repository at this point in the history
  • Loading branch information
tschettervictor authored Feb 3, 2025
1 parent ef6d761 commit d9af67b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion usr/local/share/bastille/clone.sh
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ validate_ip() {
ip6=$(echo "${IP}" | grep -E '^(([a-fA-F0-9:]+$)|([a-fA-F0-9:]+\/[0-9]{1,3}$))')
if [ -n "${ip6}" ]; then
info "Valid: (${ip6})."
# shellcheck disable=SC2034
IP6_MODE="new"
else
local IFS
Expand Down Expand Up @@ -172,6 +171,7 @@ update_jailconf() {
fi
sed -i '' "/ip6.addr = .*/ s/${_ip}/${IP}/" "${JAIL_CONFIG}"
sed -i '' "/ip6.addr += .*/ s/${_ip}/127.0.0.1/" "${JAIL_CONFIG}"
sed -i '' "s/ip6 = .*/ip6 = ${IP6_MODE};/" "${JAIL_CONFIG}"
done
fi
fi
Expand Down

0 comments on commit d9af67b

Please sign in to comment.