From ca9627e70852f6b2e835660df870fe3ab405882d Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Sun, 1 Sep 2019 00:00:32 +0200 Subject: Initial import --- net-proxy/socks5/files/unsocks | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 net-proxy/socks5/files/unsocks (limited to 'net-proxy/socks5/files/unsocks') diff --git a/net-proxy/socks5/files/unsocks b/net-proxy/socks5/files/unsocks new file mode 100644 index 0000000..63b8d91 --- /dev/null +++ b/net-proxy/socks5/files/unsocks @@ -0,0 +1,28 @@ +#!/bin/sh + +################################################################################ +## +## unsocks - Don't let the dynamic socks library be loaded +## +## If you have in your ~/.profile the following +## +## export LD_PRELOAD=libsocks5_sh.so +## +## All your session will be socksified. +## Some programs don't like it so you can use unsocks to run them unsocksified. +## The usage is very similar to runsocks(1). +## +## This is free software distributed under GPL +## +## Avi Alkalay +## 5 Jun 1999 +################################################################################ + + +if [ -n "$LD_PRELOAD" ]; then + ld_new=`echo $LD_PRELOAD | sed -e 's|libsocks5_sh.so||g'` + LD_PRELOAD=$ld_new + export LD_PRELOAD +fi + +exec "$@" -- cgit v1.2.3