Merge pull request #22949 from taosdata/enh/disableIpWhiteListOnCommunity

disable white list on community
This commit is contained in:
Haojun Liao 2023-09-18 13:41:08 +08:00 committed by GitHub
commit 82d3deb423
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -201,9 +201,9 @@ int64_t mndGetIpWhiteVer(SMnode *pMnode) {
taosThreadRwlockUnlock(&ipWhiteMgt.rw);
mDebug("ip-white-list on mnode ver: %" PRId64 "", ver);
// if (mndEnableIpWhiteList(pMnode) == 0 || tsEnableWhiteList == false) {
// return 0;
// }
if (mndEnableIpWhiteList(pMnode) == 0 || tsEnableWhiteList == false) {
return 0;
}
return ver;
}
@ -1277,7 +1277,7 @@ int32_t mndProcessGetUserWhiteListReq(SRpcMsg *pReq) {
goto _OVER;
}
// code = mndSetUserWhiteListRsp(pMnode, pUser, &wlRsp);
code = mndSetUserWhiteListRsp(pMnode, pUser, &wlRsp);
if (code) {
goto _OVER;
}