From 8612086e4ec97f2d2cb355b08a05e5d85689ef86 Mon Sep 17 00:00:00 2001 From: jkratoch <> Date: Wed, 16 Dec 2009 20:59:07 +0000 Subject: [PATCH] *_proxy: Make it IPv6 listener compatible (while assuming it accepts IPv4). --- .bashrc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.bashrc b/.bashrc index 58c137f..7de8245 100644 --- 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/ -- 1.8.3.1