Update github build-ci workflow, add support for multiple macos archs[done by @thehappydinoa]

This commit is contained in:
Adam Hamsik 2023-12-28 19:39:55 +01:00
parent 59326e6bc3
commit 1103af27b0
5 changed files with 19 additions and 9 deletions

View File

@ -17,6 +17,10 @@ jobs:
- name: configure - name: configure
run: ./configure run: ./configure
- name: Install dependencies - name: Build Proxychains
run: make run: make
- name: Run Proxychains
run: ./proxychains4

View File

@ -15,7 +15,7 @@ the same dynamic linker (i.e. same libc)
when a process forks, does a DNS lookup in the child, and then uses when a process forks, does a DNS lookup in the child, and then uses
the ip in the parent, the corresponding ip mapping will not be found, the ip in the parent, the corresponding ip mapping will not be found,
this is because the fork can't write back into the parents mapping table. this is because the fork can't write back into the parents mapping table.
IRSSI shows this behaviour, so you have to pass the resolved ip address IRSSI shows this behavior, so you have to pass the resolved ip address
to it. (you can use the proxyresolv script (requires "dig") to do so) to it. (you can use the proxyresolv script (requires "dig") to do so)
this means that you can't currently use tor onion urls for irssi. this means that you can't currently use tor onion urls for irssi.
@ -25,7 +25,7 @@ shm_open, mkstemp, are possible candidates for a file based approach,
the other option is to spawn some kind of server process that manages the the other option is to spawn some kind of server process that manages the
map lookups. since connect() etc are hooked, this must not be a TCP server. map lookups. since connect() etc are hooked, this must not be a TCP server.
I am reluctant on doing this change, because the described behaviour I am reluctant on doing this change, because the described behavior
seems pretty idiotic (doing a fork only for a DNS lookup), and irssi seems pretty idiotic (doing a fork only for a DNS lookup), and irssi
is currently the only known affected program. is currently the only known affected program.

8
TODO
View File

@ -1,7 +1,11 @@
ProxyChains ver 4.0 TODO ProxyChains ver 4.0 TODO
=================== ===================
- hooks for reentrant dns functions, i.e. gethostbyaddr_r
hooks for reentrant dns functions, i.e. gethostbyaddr_r - shadowsocks support #133
- proxy change according to attempts #156

6
configure vendored
View File

@ -96,9 +96,11 @@ echo includedir=$includedir>>config.mak
echo sysconfdir=$sysconfdir>>config.mak echo sysconfdir=$sysconfdir>>config.mak
if ismac ; then if ismac ; then
arch=`uname -m`
echo LDSO_SUFFIX=dylib>>config.mak echo LDSO_SUFFIX=dylib>>config.mak
echo OS_CFLAGS+=-DIS_MAC=1 -arch x86_64 >>config.mak echo OS_CFLAGS+=-DIS_MAC=1 -arch $arch >>config.mak
echo OS_LDFLAGS+=-arch x86_64 -lpthread -ldl -Wl,>>config.mak echo OS_LDFLAGS+=-arch $arch -lpthread -ldl -Wl,>>config.mak
echo LD_SET_SONAME=-Wl,-install_name,>>config.mak echo LD_SET_SONAME=-Wl,-install_name,>>config.mak
echo LDSO_SUFFIX=dylib>>config.mak echo LDSO_SUFFIX=dylib>>config.mak
echo INSTALL_FLAGS=-m>>config.mak echo INSTALL_FLAGS=-m>>config.mak

View File

@ -1,13 +1,13 @@
Begin3 Begin3
Title: ProxyChains Title: ProxyChains
Version: 4.0 Version: 4.3
Entered-date: Entered-date:
Description: Description:
Keywords: Keywords:
Author: <N37CR347UR3> Author: <N37CR347UR3>
Maintained-by: <haad@netbsd.org> Maintained-by: <haad@netbsd.org>
Primary-site: Primary-site:
Home-page: http://proxychains.sourceforge.net Home-page: https://github.com/haad/proxychains
Original-site: Original-site:
Platforms: Linux and other Unices Platforms: Linux and other Unices
Copying-policy: GNU Public License Copying-policy: GNU Public License