minifirewall: support protocols in numeric form

This commit is contained in:
Jérémy Lecour 2023-03-16 21:35:03 +01:00 committed by Jérémy Lecour
parent eae2eed7b0
commit b7dea8d456
2 changed files with 3 additions and 1 deletions

View File

@ -17,6 +17,8 @@ The **patch** part changes is incremented if multiple releases happen the same m
### Changed
minifirewall: support protocols in numeric form
### Fixed
### Removed

View File

@ -39,7 +39,7 @@ is_minifirewall_started() {
if test -x /usr/share/scripts/minifirewall_status; then
/usr/share/scripts/minifirewall_status > /dev/null
else
/sbin/iptables -L -n | grep -q -E "^(DROP\s+udp|ACCEPT\s+icmp)\s+--\s+0\.0\.0\.0\/0\s+0\.0\.0\.0\/0\s*$"
/sbin/iptables -L -n | grep -q -E "^(DROP\s+(udp|17)|ACCEPT\s+(icmp|1)))\s+--\s+0\.0\.0\.0\/0\s+0\.0\.0\.0\/0\s*$"
fi
fi
}