[CP][FEAT MERGE] 42x ipv6完善

This commit is contained in:
obdev
2024-03-19 08:39:36 +00:00
committed by ob-robot
parent acfd2c02d3
commit 1e94d64dc3
51 changed files with 815 additions and 479 deletions

View File

@ -179,7 +179,7 @@ int ObLocalityManager::check_ssl_invited_nodes(easy_connection_t &c)
char ip_buffer[MAX_IP_ADDR_LENGTH] = {};
easy_addr_t tmp_addr = c.addr;
tmp_addr.port = 0;//mark it invalied, not care it
char *clinet_ip = easy_inet_addr_to_str(&tmp_addr, ip_buffer, 32);
char *clinet_ip = easy_inet_addr_to_str(&tmp_addr, ip_buffer, sizeof(ip_buffer));
if (NULL != strstr(ssl_invited_nodes.ptr(), clinet_ip)
&& self_.ip_to_string(ip_buffer, MAX_IP_ADDR_LENGTH)
&& NULL != strstr(ssl_invited_nodes.ptr(), ip_buffer))