fix ip white list bug that the compare logic is not correct and will not allow ip/netmask format to login to observer

This commit is contained in:
496148326@qq.com
2023-05-16 06:11:30 +00:00
committed by ob-robot
parent 5f1468b8cf
commit 09b2cbb3ef

View File

@ -10627,7 +10627,7 @@ bool ObHostnameStuct::is_ip_match(const common::ObString &client_ip, common::ObS
}
if (is_ip_valied) {
ret_bool = (client.as_subnet(mask) == host);
ret_bool = (client.as_subnet(mask) == host.as_subnet(mask));
}
return ret_bool;
}