[CP][FEAT MERGE] 42x ipv6完善
This commit is contained in:
@ -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))
|
||||
|
||||
Reference in New Issue
Block a user