mirror of
https://github.com/haad/proxychains.git
synced 2026-09-14 11:05:48 +05:00
Check for default config file in 2 locations /etc/ and {install_prefix}/etc.
This commit is contained in:
parent
2250ef66a8
commit
adb13c7e79
@ -128,8 +128,9 @@ int main(int argc, char *argv[]) {
|
||||
if(check_path(path))
|
||||
goto have;
|
||||
|
||||
/* Check for default config file in two locations {install_prefix}/etc /etc */
|
||||
// priority 4: $INSTALL_PREFIX/etc/proxychains.conf
|
||||
snprintf(pbuf, sizeof(pbuf), "%s/%s", INSTALL_PREFIX, PROXYCHAINS_CONF_FILE);
|
||||
snprintf(pbuf, sizeof(pbuf), "%s/proxychains.conf", INSTALL_PREFIX);
|
||||
path = pbuf;
|
||||
if(check_path(path))
|
||||
goto have;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user