Adding rules may not including port number

This commit is contained in:
Chai Feng 2018-10-03 14:31:52 +08:00
parent f9604f62cf
commit dc0c629107
No known key found for this signature in database
GPG Key ID: 2DCD9A24E523FFD2

View File

@ -22,7 +22,7 @@ function ufw-docker--list() {
INSTANCE_PORT="[[:digit:]]\\+"
PROTO="\\(tcp\\|udp\\)"
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() {