proxychains-ng/src
rofl0r 1221c5e93a get_chain_data: fix strstr() config parsing
using strstr() is a very error-prone way for config parsing.

for example if "proxy_dns" is being tested for the line "proxy_dns_old",
it would return true.

we fix this by removing leading and trailing whitespace from the line
to parse and use strcmp/strncmp() instead.

the if(1) has been inserted so we can keep the same indentation level
and not spam the commit with whitespace changes.
2020-09-21 11:31:52 +01:00
..
allocator_thread.c allocator_thread: rework message sending structures 2020-09-20 18:17:51 +01:00
allocator_thread.h preliminary ipv6 support 2015-08-10 17:00:26 +01:00
common.c Add Haiku support (#340) 2020-08-17 09:31:04 +01:00
common.h Add DUMP_PROXY_CHAIN for debug builds and debug.c. 2013-06-25 12:56:41 +02:00
core.c proxy_dns_old: use pipe2 if available, else O_CLOEXEC 2020-09-21 10:46:38 +01:00
core.h add support for "proxy_dns_old" to use old 3.1 DNS lookup method 2020-09-20 22:11:17 +01:00
debug.c debug: fix DUMP_PROXY_CHAIN() hack 2020-09-20 17:00:10 +01:00
debug.h debug: fix DUMP_PROXY_CHAIN() hack 2020-09-20 17:00:10 +01:00
hash.c replace hostent lookup with better performing in-memory copy. 2012-11-08 01:18:19 +01:00
hash.h replace hostent lookup with better performing in-memory copy. 2012-11-08 01:18:19 +01:00
hostsreader.c improve hostsreader test code 2016-02-04 09:38:16 +00:00
ip_type.c Fix trivial compilation warning 2016-06-09 12:09:51 +01:00
ip_type.h preliminary ipv6 support 2015-08-10 17:00:26 +01:00
libproxychains.c get_chain_data: fix strstr() config parsing 2020-09-21 11:31:52 +01:00
main.c fix build on FreeBSD due to usage of Dl_info 2020-09-05 14:36:05 +01:00
mutex.h preliminary first fork-safe version 2012-11-07 21:31:11 +01:00
nameinfo.c fix the never-ending issues with the wrong glibc prototype of getnameinfo 2012-12-17 22:17:04 +01:00
proxychains.conf add support for "proxy_dns_old" to use old 3.1 DNS lookup method 2020-09-20 22:11:17 +01:00
proxyresolv add support for "proxy_dns_old" to use old 3.1 DNS lookup method 2020-09-20 22:11:17 +01:00
remotedns.h allocator_thread: rework message sending structures 2020-09-20 18:17:51 +01:00
version.c print proxychains version on DLL init 2014-07-22 14:10:11 +02:00