From cbf3c61d4bc417814fc7fbd7fc2e3f6a9c313f24 Mon Sep 17 00:00:00 2001 From: jtao1735 Date: Mon, 4 May 2020 01:03:59 +0000 Subject: [PATCH] rpc shall not check peer IP address, it shall only use FQDN --- src/rpc/src/rpcMain.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/rpc/src/rpcMain.c b/src/rpc/src/rpcMain.c index 820720f4c2..b5c2967e47 100644 --- a/src/rpc/src/rpcMain.c +++ b/src/rpc/src/rpcMain.c @@ -793,14 +793,6 @@ static SRpcConn *rpcProcessMsgHead(SRpcInfo *pRpc, SRecvInfo *pRecv) { sid = pConn->sid; pConn->chandle = pRecv->chandle; - if (pConn->peerIp != pRecv->ip) { - pConn->peerIp = pRecv->ip; - char ipstr[20] = {0}; - tinet_ntoa(ipstr, pRecv->ip); - strcpy(pConn->peerFqdn, ipstr); - } - - if (pRecv->port) pConn->peerPort = pRecv->port; if (pHead->port) pConn->peerPort = htons(pHead->port); terrno = rpcCheckAuthentication(pConn, (char *)pHead, pRecv->msgLen); -- GitLab