summaryrefslogtreecommitdiffstats
path: root/knot-resolver
diff options
context:
space:
mode:
authorDaniel Baumann <mail@daniel-baumann.ch>2022-04-15 09:26:32 +0000
committerDaniel Baumann <mail@daniel-baumann.ch>2022-04-15 09:26:32 +0000
commit8da209ae1c5d8353786343a90af3a56c5794f2fa (patch)
treef369262dc9c06ec517651ffc87d7b4f5f768a003 /knot-resolver
parentReleasing version 20220414. (diff)
downloadservice-tools-8da209ae1c5d8353786343a90af3a56c5794f2fa.tar.xz
service-tools-8da209ae1c5d8353786343a90af3a56c5794f2fa.zip
Using localhost as fallback in kresd-cache-clear.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
Diffstat (limited to 'knot-resolver')
-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