1
0
mirror of https://github.com/byReqz/conn.git synced 2024-11-22 09:01:15 +00:00

Compare commits

...

3 Commits

Author SHA1 Message Date
actions
198d8beb91 updated hash after commit 2021-12-06 16:21:39 +00:00
nils
f4b83b6896 remove hash 2021-12-06 17:21:14 +01:00
nils
6e40823b90 quick fix for v6 adresses being rejected 2021-12-06 17:20:32 +01:00
2 changed files with 7 additions and 2 deletions

View File

@ -86,6 +86,11 @@ function set_argvars {
function validate { function validate {
for arg in $@; do for arg in $@; do
if [[ ! "$arg" =~ : ]];then
arg=" $arg" # fixes issue with leading space on ipv6 adresses
else
only="-6" # enable ipv6, this needs a more complex function to avoid treating every argument as v6
fi
if ip route show "$arg" 2&> /dev/null;then if ip route show "$arg" 2&> /dev/null;then
hosts="$hosts $arg" hosts="$hosts $arg"
elif nslookup "$arg" > /dev/null;then elif nslookup "$arg" > /dev/null;then

2
hash
View File

@ -1 +1 @@
0f91143820ae11bd353a4ff25dc8cca5 5137f97b93f5e52c8c31255f582c8328