From: jkratoch <> Date: Wed, 16 Dec 2009 20:59:07 +0000 (+0000) Subject: *_proxy: Make it IPv6 listener compatible (while assuming it accepts IPv4). X-Git-Url: https://git.jankratochvil.net/?p=nethome.git;a=commitdiff_plain;h=8612086e4ec97f2d2cb355b08a05e5d85689ef86 *_proxy: Make it IPv6 listener compatible (while assuming it accepts IPv4). --- 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/