mirror of
https://github.com/chaifeng/ufw-docker.git
synced 2025-06-28 06:56:13 +02:00
remove "force add"
This commit is contained in:
parent
4ab8060b92
commit
36afb81244
2 changed files with 0 additions and 8 deletions
|
@ -51,13 +51,6 @@ function ufw-docker--allow() {
|
|||
|
||||
mapfile -t PORT_PROTO_LIST < <(docker inspect --format='{{range $p, $conf := .NetworkSettings.Ports}}{{with $conf}}{{$p}}{{"\n"}}{{end}}{{end}}' "$INSTANCE_NAME" | remove_blank_lines)
|
||||
|
||||
if [[ "${UFW_DOCKER_FORCE_ADD:-}" = "yes" ]]; then
|
||||
for IP in "${INSTANCE_IP_ADDRESSES[@]}"; do
|
||||
ufw-docker--add-rule "$INSTANCE_NAME" "$IP" "${INSTANCE_PORT}" "${PROTO}"
|
||||
done
|
||||
return
|
||||
fi
|
||||
|
||||
if [[ -z "${PORT_PROTO_LIST:-}" ]]; then
|
||||
err "\"$INSTANCE_NAME\" doesn't have any published ports."
|
||||
return 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue