summaryrefslogtreecommitdiffstats
path: root/knot-resolver/bin
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xknot-resolver/bin/kresd-cache-clear8
1 files changed, 1 insertions, 7 deletions
diff --git a/knot-resolver/bin/kresd-cache-clear b/knot-resolver/bin/kresd-cache-clear
index 79e62a8..49c2462 100755
--- a/knot-resolver/bin/kresd-cache-clear
+++ b/knot-resolver/bin/kresd-cache-clear
@@ -21,13 +21,7 @@
set -e
-HOSTS="${*}"
-
-if [ -z "${HOSTS}" ]
-then
- echo "Usage: ${0} localhost|[HOST1 HOST2 ...]" >&2
- exit 1
-fi
+HOSTS="${*:-localhost}"
for HOST in ${HOSTS}
do