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:
committed by
ob-robot
parent
5f1468b8cf
commit
09b2cbb3ef
@ -10627,7 +10627,7 @@ bool ObHostnameStuct::is_ip_match(const common::ObString &client_ip, common::ObS
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (is_ip_valied) {
|
if (is_ip_valied) {
|
||||||
ret_bool = (client.as_subnet(mask) == host);
|
ret_bool = (client.as_subnet(mask) == host.as_subnet(mask));
|
||||||
}
|
}
|
||||||
return ret_bool;
|
return ret_bool;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user