diff options
author | Daniel Baumann <mail@daniel-baumann.ch> | 2022-04-15 09:26:32 +0000 |
---|---|---|
committer | Daniel Baumann <mail@daniel-baumann.ch> | 2022-04-15 09:26:32 +0000 |
commit | 8da209ae1c5d8353786343a90af3a56c5794f2fa (patch) | |
tree | f369262dc9c06ec517651ffc87d7b4f5f768a003 /knot-resolver/bin | |
parent | Releasing version 20220414. (diff) | |
download | service-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/bin')
-rwxr-xr-x | knot-resolver/bin/kresd-cache-clear | 8 |
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 |