rc: improve geoip to also check IPv6

This commit is contained in:
Aminda Suomalainen 2015-03-04 13:04:32 +02:00
parent 8a48996008
commit e2a3c0f2eb
2 changed files with 6 additions and 4 deletions

View File

@ -608,9 +608,10 @@ fi
##### Functions ZGC5QQ #####
# GEOIP lookup, copied from the ultimate bashrc http://goo.gl/qGK5j
# GEOIP lookup, improved from the ultimate bashrc http://goo.gl/qGK5j
function geoip() {
geoiplookup $1
geoiplookup $1
geoiplookup6 $1
}
# Checks which package the command comes from. Copied from the ultimate bashrc http://goo.gl/qGK5j

View File

@ -581,9 +581,10 @@ fi
##### Functions ZGC5QQ #####
# GEOIP lookup, copied from the ultimate bashrc http://goo.gl/qGK5j
# GEOIP lookup, improved from the ultimate bashrc http://goo.gl/qGK5j
function geoip() {
geoiplookup $1
geoiplookup $1
geoiplookup6 $1
}
# Checks which package the command comes from. Copied from the ultimate bashrc http://goo.gl/qGK5j