1 Jul
2006
1 Jul
'06
11:06 p.m.
On Thu, 2006-06-29 at 19:19 +0200, Dirk Engling wrote:
addr = net_ip2addr(ip);
local_addr = net_ip2addr(local_ip); client->common.secured = ssl || (IPADDR_IS_V4(ip) && strncmp(addr, "127.", 4) == 0) ||
strlen(local_addr)) == 0) || (IPADDR_IS_V6(ip) && (strcmp(addr, "::1") == 0 || strncmp(addr, "::ffff:127.", 11) == 0));(IPADDR_IS_V4(ip) && strncmp(addr, local_addr,
Actually all this can be done much more easily:
client->common.secured = ssl || net_ip_compare(ip, local_ip);