mirror of
https://github.com/haad/proxychains.git
synced 2026-09-13 18:45:50 +05:00
Add etc/ to path where we search for config file.
This commit is contained in:
parent
adb13c7e79
commit
89e8bfddf4
@ -130,7 +130,7 @@ int main(int argc, char *argv[]) {
|
||||
|
||||
/* Check for default config file in two locations {install_prefix}/etc /etc */
|
||||
// priority 4: $INSTALL_PREFIX/etc/proxychains.conf
|
||||
snprintf(pbuf, sizeof(pbuf), "%s/proxychains.conf", INSTALL_PREFIX);
|
||||
snprintf(pbuf, sizeof(pbuf), "%s/etc/proxychains.conf", INSTALL_PREFIX);
|
||||
path = pbuf;
|
||||
if(check_path(path))
|
||||
goto have;
|
||||
@ -139,7 +139,7 @@ int main(int argc, char *argv[]) {
|
||||
path = "/etc/proxychains.conf";
|
||||
if(check_path(path))
|
||||
goto have;
|
||||
perror("couldnt find configuration file");
|
||||
perror("Couldn't find configuration file");
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user