mirror of
https://github.com/rofl0r/proxychains-ng
synced 2025-01-08 22:22:52 +08:00
complete sysconfdir support
This commit is contained in:
parent
0ee539f31c
commit
e99dd76941
2
Makefile
2
Makefile
@ -39,7 +39,7 @@ ALL_TOOLS = $(PXCHAINS)
|
|||||||
|
|
||||||
|
|
||||||
CFLAGS+=$(USER_CFLAGS) $(MAC_CFLAGS)
|
CFLAGS+=$(USER_CFLAGS) $(MAC_CFLAGS)
|
||||||
CFLAGS_MAIN=-DLIB_DIR=\"$(libdir)\" -DINSTALL_PREFIX=\"$(prefix)\" -DDLL_NAME=\"$(LDSO_PATHNAME)\"
|
CFLAGS_MAIN=-DLIB_DIR=\"$(libdir)\" -DSYSCONFDIR=\"$(sysconfdir)\" -DDLL_NAME=\"$(LDSO_PATHNAME)\"
|
||||||
|
|
||||||
|
|
||||||
all: $(ALL_LIBS) $(ALL_TOOLS)
|
all: $(ALL_LIBS) $(ALL_TOOLS)
|
||||||
|
@ -121,8 +121,8 @@ int main(int argc, char *argv[]) {
|
|||||||
if(check_path(path))
|
if(check_path(path))
|
||||||
goto have;
|
goto have;
|
||||||
|
|
||||||
// priority 4: $INSTALL_PREFIX/etc/proxychains.conf
|
// priority 4: $SYSCONFDIR/proxychains.conf
|
||||||
path = INSTALL_PREFIX "/etc/" PROXYCHAINS_CONF_FILE;
|
path = SYSCONFDIR "/" PROXYCHAINS_CONF_FILE;
|
||||||
if(check_path(path))
|
if(check_path(path))
|
||||||
goto have;
|
goto have;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user