*_proxy: Make it IPv6 listener compatible (while assuming it accepts IPv4).
authorjkratoch <>
Wed, 16 Dec 2009 20:59:07 +0000 (20:59 +0000)
committerjkratoch <>
Wed, 16 Dec 2009 20:59:07 +0000 (20:59 +0000)
.bashrc

diff --git a/.bashrc b/.bashrc
index 58c137f..7de8245 100644 (file)
--- a/.bashrc
+++ b/.bashrc
@@ -207,7 +207,9 @@ unset cpus
 # as Sun workaround as Debian misses: /etc/termcap
 # expects: $uname_p
 [ "$TERM" = vt220 -a "${uname_p%86}" != "$uname_p" ] && export TERM=linux
-if grep 2>/dev/null -q '^..............:0C38 00000000:0000 0A ' /proc/net/tcp;then
+if grep 2>/dev/null -q '^..............:0C38 00000000:0000 0A ' /proc/net/tcp \
+|| grep 2>/dev/null -q '^....: 00000000000000000000000000000000:0C38 00000000000000000000000000000000:0000 0A ' /proc/net/tcp6 \
+;then
        export  http_proxy=http://127.0.0.1:3128/
        export https_proxy=http://127.0.0.1:3128/
        export   ftp_proxy=http://127.0.0.1:3128/