mirror of
https://github.com/rofl0r/proxychains-ng.git
synced 2024-12-22 12:18:47 +00: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_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)
|
||||
|
@ -121,8 +121,8 @@ int main(int argc, char *argv[]) {
|
||||
if(check_path(path))
|
||||
goto have;
|
||||
|
||||
// priority 4: $INSTALL_PREFIX/etc/proxychains.conf
|
||||
path = INSTALL_PREFIX "/etc/" PROXYCHAINS_CONF_FILE;
|
||||
// priority 4: $SYSCONFDIR/proxychains.conf
|
||||
path = SYSCONFDIR "/" PROXYCHAINS_CONF_FILE;
|
||||
if(check_path(path))
|
||||
goto have;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user