Fix parser bug where proxy count in chain could be incremented even though no proxy was added.

pull/22/head
crass 2013-06-23 23:42:48 +07:00
parent 88fe2ac96a
commit 791a8619f9
1 changed files with 3 additions and 3 deletions

View File

@ -217,10 +217,10 @@ static void get_chain_data(proxy_chain_list *pc_list) {
pd_list[count].pt = SOCKS5_TYPE;
} else
continue;
}
if(pd_list[count].ip.as_int && port_n && pd_list[count].ip.as_int != (uint32_t) - 1)
count++;
if(pd_list[count].ip.as_int && port_n && pd_list[count].ip.as_int != (uint32_t) - 1)
count++;
}
} else {
char *s1, *s2;
if((s1=(strstr(buff, "["))+1) && (s1 < (s2=strstr(buff, "]")))) {