We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 154ab55 commit bf28d6bCopy full SHA for bf28d6b
unittest
@@ -269,7 +269,6 @@ declare -A types=(
269
[hexa]="0x123abc 71234 abc"
270
[ipv4]="192.168.40.254 127.0.0.1 1.2.3.4"
271
[ipv6]="2001:7a8:b018::1 ::1 2001:7a8:b018:0:21f:c6ff:fe59:71fd"
272
- [host]="${types[ipv4]} ${types[ipv6]}"
273
[username]=$(whoami)
274
[group]=$(id -gn)
275
[port]="ssh 80"
@@ -307,6 +306,8 @@ do
307
306
fi
308
done
309
+# Default 'host' type test case:
310
+types[host]="${types[ipv4]} ${types[ipv6]}"
311
# Test hostnames only if we can actually resolv.
312
if host localhost >/dev/null 2>&1
313
then
0 commit comments