mirror of
https://github.com/haad/proxychains.git
synced 2026-09-12 19:50:06 +05:00
Fix issue with libproxychains library naming on mac os.
This commit is contained in:
parent
87733ca08a
commit
5cd04b70ca
10
.github/workflows/buildci.yml
vendored
10
.github/workflows/buildci.yml
vendored
@ -22,11 +22,10 @@ jobs:
|
||||
run: ./proxychains4 -v
|
||||
|
||||
- name: Run tests
|
||||
run: ./proxychains4 -f dist/proxychains.conf curl -o /dev/null -v https://sme.sk
|
||||
run: ./src/proxychains -f dist/proxychains.conf curl -o /dev/null -v https://sme.sk
|
||||
|
||||
- name: Run tests
|
||||
run: ./proxychains4 -f dist/proxychains.conf curl -o /dev/null -v https://sme.sk
|
||||
|
||||
run: ./src/proxychains -f dist/proxychains.conf ping -t 1 sme.sk
|
||||
build-macos:
|
||||
runs-on: macos-latest
|
||||
steps:
|
||||
@ -42,6 +41,9 @@ jobs:
|
||||
run: ./proxychains4 -v
|
||||
|
||||
- name: Run tests
|
||||
run: ./proxychains4 -f dist/proxychains.conf curl -o /dev/null -v https://sme.sk
|
||||
run: ./src/proxychains -f dist/proxychains.conf curl -o /dev/null -v https://sme.sk
|
||||
|
||||
- name: Run tests
|
||||
run: ./src/proxychains -f dist/proxychains.conf ping -t 1 sme.sk
|
||||
|
||||
|
||||
|
||||
13
Makefile
13
Makefile
@ -27,14 +27,11 @@ PIC = -fPIC
|
||||
AR = $(CROSS_COMPILE)ar
|
||||
RANLIB = $(CROSS_COMPILE)ranlib
|
||||
|
||||
LDSO_SUFFIX = so
|
||||
LD_SET_SONAME = -Wl
|
||||
INSTALL_FLAGS = -D -m
|
||||
|
||||
-include config.mak
|
||||
|
||||
LDSO_PATHNAME = libproxychains4.$(LDSO_SUFFIX)
|
||||
|
||||
SHARED_LIBS = $(LDSO_PATHNAME)
|
||||
ALL_LIBS = $(SHARED_LIBS)
|
||||
PXCHAINS = proxychains4
|
||||
@ -45,6 +42,16 @@ LDFLAGS+=$(USER_LDFLAGS) $(OS_LDFLAGS)
|
||||
CXXFLAGS+=$(CCFLAGS) $(USER_CFLAGS) $(OS_CFLAGS)
|
||||
CFLAGS_MAIN=-DLIB_DIR=\"$(libdir)\" -DINSTALL_PREFIX=\"$(prefix)\" -DDLL_NAME=\"$(LDSO_PATHNAME)\" -DSYSCONFDIR=\"$(confdir)\"
|
||||
|
||||
UNAME_S := $(shell uname -s)
|
||||
ifeq ($(UNAME_S),Linux)
|
||||
LDSO_SUFFIX = so
|
||||
endif
|
||||
ifeq ($(UNAME_S),Darwin)
|
||||
LDSO_SUFFIX = dylib
|
||||
endif
|
||||
LDSO_PATHNAME = libproxychains4.$(LDSO_SUFFIX)
|
||||
|
||||
|
||||
all: $(ALL_LIBS) $(ALL_TOOLS)
|
||||
|
||||
#install: $(ALL_LIBS:lib/%=$(DESTDIR)$(libdir)/%) $(DESTDIR)$(LDSO_PATHNAME)
|
||||
|
||||
3
dist/proxychains.conf
vendored
3
dist/proxychains.conf
vendored
@ -6,7 +6,8 @@ tcp_connect_time_out 8000
|
||||
|
||||
localnet 127.0.0.0/255.0.0.0
|
||||
|
||||
|
||||
[ProxyList]
|
||||
http 162.243.184.252 8585
|
||||
#socks4 184.170.245.148 4145
|
||||
#raw 162.243.184.252 8585
|
||||
http 162.243.184.252 8585
|
||||
|
||||
@ -4,7 +4,7 @@ echo "ProxyChains-4.0 (https://github.com/haad/proxychains)"
|
||||
usage() {
|
||||
|
||||
echo " usage:"
|
||||
echo " $0 [hq] [-f config-file] <prog> [args]"
|
||||
echo " $0 [hqv] [-f config-file] <prog> [args]"
|
||||
echo " -q make proxychains quiet"
|
||||
exit
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user