mirror of
https://github.com/haad/proxychains.git
synced 2026-09-14 11:05:48 +05:00
Use standard PROXYCHAINS_CONF_FILE instead of hardcoded config name.
This commit is contained in:
parent
99dcfe085e
commit
788ffd9d26
@ -130,13 +130,14 @@ 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/etc/proxychains.conf", INSTALL_PREFIX);
|
||||
snprintf(pbuf, sizeof(pbuf), "%s/etc/%s", INSTALL_PREFIX, PROXYCHAINS_CONF_FILE);
|
||||
path = pbuf;
|
||||
if(check_path(path))
|
||||
goto have;
|
||||
|
||||
// priority 5: /etc/proxychains.conf
|
||||
path = "/etc/proxychains.conf";
|
||||
snprintf(pbuf, sizeof(pbuf), "/etc/%s", PROXYCHAINS_CONF_FILE);
|
||||
path = pbuf;
|
||||
if(check_path(path))
|
||||
goto have;
|
||||
perror("Couldn't find configuration file");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user