1
0
mirror of https://github.com/rofl0r/proxychains-ng synced 2026-05-17 03:02:41 +08:00

pass install prefix to proxychains app, to find /etc

This commit is contained in:
rofl0r
2012-01-27 19:28:00 +01:00
Unverified
parent 3bb03892fa
commit 2acdcd9707
2 changed files with 8 additions and 2 deletions
+7 -1
View File
@@ -121,7 +121,13 @@ int main(int argc, char *argv[]) {
if(check_path(path))
goto have;
// priority 4: /etc/proxychains.conf
// priority 4: $INSTALL_PREFIX/etc/proxychains.conf
snprintf(pbuf, sizeof(pbuf), "%s/%s", INSTALL_PREFIX, PROXYCHAINS_CONF_FILE);
path = pbuf;
if(check_path(path))
goto have;
// priority 5: /etc/proxychains.conf
path = "/etc/proxychains.conf";
if(check_path(path))
goto have;