mirror of
https://github.com/rofl0r/proxychains-ng.git
synced 2024-12-22 20:38:49 +00:00
cosmetic fix
This commit is contained in:
parent
d72e668767
commit
45f50ac754
@ -174,7 +174,11 @@ static void get_chain_data(proxy_data * pd, unsigned int *proxy_count, chain_typ
|
|||||||
|
|
||||||
while(fgets(buff, sizeof(buff), file)) {
|
while(fgets(buff, sizeof(buff), file)) {
|
||||||
if(buff[0] != '\n' && buff[strspn(buff, " ")] != '#') {
|
if(buff[0] != '\n' && buff[strspn(buff, " ")] != '#') {
|
||||||
|
/* proxylist has to come last */
|
||||||
if(list) {
|
if(list) {
|
||||||
|
if(count >= MAX_CHAIN)
|
||||||
|
break;
|
||||||
|
|
||||||
memset(&pd[count], 0, sizeof(proxy_data));
|
memset(&pd[count], 0, sizeof(proxy_data));
|
||||||
|
|
||||||
pd[count].ps = PLAY_STATE;
|
pd[count].ps = PLAY_STATE;
|
||||||
@ -195,8 +199,7 @@ static void get_chain_data(proxy_data * pd, unsigned int *proxy_count, chain_typ
|
|||||||
continue;
|
continue;
|
||||||
|
|
||||||
if(pd[count].ip.as_int && port_n && pd[count].ip.as_int != (uint32_t) - 1)
|
if(pd[count].ip.as_int && port_n && pd[count].ip.as_int != (uint32_t) - 1)
|
||||||
if(++count == MAX_CHAIN)
|
count++;
|
||||||
break;
|
|
||||||
} else {
|
} else {
|
||||||
if(strstr(buff, "[ProxyList]")) {
|
if(strstr(buff, "[ProxyList]")) {
|
||||||
list = 1;
|
list = 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user