mirror of
https://github.com/byReqz/conn.git
synced 2024-11-22 00:53:14 +00:00
Compare commits
3 Commits
44b684e721
...
198d8beb91
Author | SHA1 | Date | |
---|---|---|---|
|
198d8beb91 | ||
|
f4b83b6896 | ||
|
6e40823b90 |
5
conn.sh
5
conn.sh
@ -86,6 +86,11 @@ function set_argvars {
|
||||
|
||||
function validate {
|
||||
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
|
||||
hosts="$hosts $arg"
|
||||
elif nslookup "$arg" > /dev/null;then
|
||||
|
Loading…
Reference in New Issue
Block a user