summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugues Hiegel <hugues.hiegel@sagem.com>2009-03-04 16:12:19 +0100
committerHugues Hiegel <hugues.hiegel@sagem.com>2009-03-04 16:12:19 +0100
commit5d86bb11e3303acc7ed57b7b2f0ad63dfc24c6f7 (patch)
treef494d6647c91ebefd47ea32cf643fa9213bfa4ac
parentc01ee8942ace93d3cb7e5e6b2c414541fe66b867 (diff)
[OSNY] utilisation de tsocks avec ssh -D
-rw-r--r--net:osn.sagem/host:osnp1260077/user:hugues/Environment.zsh10
1 files changed, 8 insertions, 2 deletions
diff --git a/net:osn.sagem/host:osnp1260077/user:hugues/Environment.zsh b/net:osn.sagem/host:osnp1260077/user:hugues/Environment.zsh
index 7c15a49..26ddb04 100644
--- a/net:osn.sagem/host:osnp1260077/user:hugues/Environment.zsh
+++ b/net:osn.sagem/host:osnp1260077/user:hugues/Environment.zsh
@@ -43,5 +43,11 @@ hash -d K:=/media/osn01001/Projets_STB
hash -d J:=/media/osn02001/Echanges
# proxy
-export http_proxy="http://190.99.3.97:3128"
-export ftp_proxy=$http_proxy
+if cmd_exists tsocks
+then
+ . tsocks -on
+else
+ export http_proxy="http://190.99.3.97:3128"
+ export ftp_proxy=$http_proxy
+fi
+