Fix localnet issue with fix suggested in #issue 4 on github.

This commit is contained in:
Adam Hamsik 2012-01-10 15:53:03 +01:00 committed by rofl0r
parent 8fd0d95bc3
commit 75bd465038

View File

@ -338,7 +338,7 @@ int connect (int sock, const struct sockaddr *addr, unsigned int len)
if ((localnet_addr[i].in_addr.s_addr & localnet_addr[i].netmask.s_addr)
== (p_addr_in->s_addr & localnet_addr[i].netmask.s_addr))
{
if (localnet_addr[i].port && localnet_addr[i].port == port) {
if (localnet_addr[i].port || localnet_addr[i].port == port) {
PDEBUG("accessing localnet using true_connect\n");
return true_connect(sock,addr,len);
}