Adding rules may not including port number
This commit is contained in:
parent
f9604f62cf
commit
dc0c629107
@ -22,7 +22,7 @@ function ufw-docker--list() {
|
|||||||
INSTANCE_PORT="[[:digit:]]\\+"
|
INSTANCE_PORT="[[:digit:]]\\+"
|
||||||
PROTO="\\(tcp\\|udp\\)"
|
PROTO="\\(tcp\\|udp\\)"
|
||||||
fi
|
fi
|
||||||
ufw status numbered | grep "# allow ${INSTANCE_NAME} ${INSTANCE_PORT}\\/${PROTO}\$"
|
ufw status numbered | grep "# allow ${INSTANCE_NAME}\\( ${INSTANCE_PORT}\\/${PROTO}\\)\\?\$"
|
||||||
}
|
}
|
||||||
|
|
||||||
function ufw-docker--list-number() {
|
function ufw-docker--list-number() {
|
||||||
|
Loading…
Reference in New Issue
Block a user