0001-Use-proper-library-version-for-libproxychains.patch 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. From: Boyuan Yang <073plan@gmail.com>
  2. Date: Fri, 29 Jun 2018 16:20:59 +0800
  3. Subject: Use proper library version for libproxychains
  4. Forwarded: not-needed
  5. ---
  6. Makefile | 4 ++--
  7. src/proxyresolv | 2 +-
  8. 2 files changed, 3 insertions(+), 3 deletions(-)
  9. diff --git a/Makefile b/Makefile
  10. index fe5f8c6..e1a1049 100644
  11. --- a/Makefile
  12. +++ b/Makefile
  13. @@ -32,11 +32,11 @@ AR = $(CROSS_COMPILE)ar
  14. RANLIB = $(CROSS_COMPILE)ranlib
  15. SOCKET_LIBS =
  16. -LDSO_SUFFIX = so
  17. +LDSO_SUFFIX = so.4
  18. LD_SET_SONAME = -Wl,-soname=
  19. INSTALL = ./tools/install.sh
  20. -LDSO_PATHNAME = libproxychains4.$(LDSO_SUFFIX)
  21. +LDSO_PATHNAME = libproxychains.$(LDSO_SUFFIX)
  22. SHARED_LIBS = $(LDSO_PATHNAME)
  23. ALL_LIBS = $(SHARED_LIBS)
  24. diff --git a/src/proxyresolv b/src/proxyresolv
  25. index ae932c2..032b77e 100755
  26. --- a/src/proxyresolv
  27. +++ b/src/proxyresolv
  28. @@ -14,5 +14,5 @@ if [ $# = 0 ] ; then
  29. fi
  30. -export LD_PRELOAD=libproxychains4.so
  31. +export LD_PRELOAD=libproxychains.so.4.0.0
  32. dig $1 @$DNS_SERVER +tcp | awk '/A.?[0-9]+\.[0-9]+\.[0-9]/{print $5;}'