Update default.inc

This commit is contained in:
2023-04-22 17:03:57 -05:00
parent 125e28d8e0
commit 37740ea565

View File

@@ -34,6 +34,12 @@ IPprefix_by_netmask () {
let c+=$((x%2)) 'x>>=1'
done
echo $c ; }
ALLOWED_NETWORKS="10.10.0.0/16 10.5.0.0/20 192.168.5.0/24"
IP_ALLOWED() {
grepcidr "${ALLOWED_NETWORKS}" <(echo "${1}") >/dev/null && echo "true" || echo "false"
}
if type apt &>/dev/null; then
ATYPE="apt"