fix compiler parentheses warning in dnat code

This commit is contained in:
rofl0r 2021-01-08 17:45:35 +00:00
parent 596f0028cb
commit 6c029fdf47

View File

@ -596,7 +596,7 @@ int connect(int sock, const struct sockaddr *addr, unsigned int len) {
// more specific first
if (!v6) for(i = 0; i < num_dnats && !remote_dns_connect && !dnat; i++)
if((dnats[i].orig_dst.s_addr == p_addr_in->s_addr))
if(dnats[i].orig_dst.s_addr == p_addr_in->s_addr)
if(dnats[i].orig_port && (dnats[i].orig_port == port))
dnat = &dnats[i];