diff options
author | Adam Hamsik <adam.hamsik@chillisys.com> | 2012-01-28 22:51:23 +0400 |
---|---|---|
committer | Adam Hamsik <adam.hamsik@chillisys.com> | 2012-01-28 22:51:23 +0400 |
commit | 788ffd9d261f97c619ea98f6760b0b456e4453bb (patch) | |
tree | c1e14d4ba36304282ff0a2ba80d1ff003ff941a7 | |
parent | 99dcfe085e158e1c985445b118ac022ae6ea42a2 (diff) |
Use standard PROXYCHAINS_CONF_FILE instead of hardcoded config name.proxychains-4.0.1
-rw-r--r-- | src/main.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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"); |