mirror of
https://github.com/chaifeng/ufw-docker.git
synced 2025-05-10 21:48:30 +02:00
Fix tabs in ufw-docker
This commit is contained in:
parent
97543811ea
commit
57a3fd32da
1 changed files with 4 additions and 4 deletions
|
@ -31,7 +31,7 @@ function ufw-docker--list() {
|
||||||
if [[ -z "$NETWORK" ]]; then
|
if [[ -z "$NETWORK" ]]; then
|
||||||
NETWORK="[[:graph:]]*"
|
NETWORK="[[:graph:]]*"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
ufw status numbered | grep "# allow ${INSTANCE_NAME}\\( ${INSTANCE_PORT}\\/${PROTO}\\)\\?\\( ${NETWORK}\\)\\?\$"
|
ufw status numbered | grep "# allow ${INSTANCE_NAME}\\( ${INSTANCE_PORT}\\/${PROTO}\\)\\?\\( ${NETWORK}\\)\\?\$"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -437,9 +437,9 @@ case "$ufw_action" in
|
||||||
if [[ "$INSTANCE_PORT" = */udp ]]; then
|
if [[ "$INSTANCE_PORT" = */udp ]]; then
|
||||||
PROTO=udp
|
PROTO=udp
|
||||||
fi
|
fi
|
||||||
shift || true
|
shift || true
|
||||||
|
|
||||||
NETWORK="${1:-}"
|
NETWORK="${1:-}"
|
||||||
|
|
||||||
INSTANCE_PORT="${INSTANCE_PORT%/*}"
|
INSTANCE_PORT="${INSTANCE_PORT%/*}"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue