diff --git a/weave b/weave index 66a03727..dc2dea4f 100755 --- a/weave +++ b/weave @@ -147,6 +147,9 @@ collect_cidr_args() { CIDR_COUNT=$(($CIDR_COUNT + 1)) shift 1 done + if [ $CIDR_COUNT -eq 0 ]; then + [ $# -gt 0 ] && validate_cidr "$1" || usage + fi } run_iptables() {