fix: check the compatibility of client version and server version

This commit is contained in:
Xiaoyu Wang 2023-03-08 16:42:09 +08:00
parent 3db2c59581
commit 5d80e71d9e
1 changed files with 2 additions and 0 deletions

View File

@ -231,6 +231,8 @@ static int32_t mndProcessConnectReq(SRpcMsg *pReq) {
goto _OVER;
}
code = -1;
taosIp2String(pReq->info.conn.clientIp, ip);
if (mndCheckOperPrivilege(pMnode, pReq->info.conn.user, MND_OPER_CONNECT) != 0) {
mGError("user:%s, failed to login from %s since %s", pReq->info.conn.user, ip, terrstr());