提交 2f9c8417 编写于 作者: S shenglian zhou

fix: use appname to see whether it is udfd

上级 6de507d3
...@@ -25,7 +25,6 @@ ...@@ -25,7 +25,6 @@
#include "mndUser.h" #include "mndUser.h"
#include "tglobal.h" #include "tglobal.h"
#include "tversion.h" #include "tversion.h"
#include "tudf.h"
typedef struct { typedef struct {
uint32_t id; uint32_t id;
...@@ -245,10 +244,8 @@ static int32_t mndProcessConnectReq(SRpcMsg *pReq) { ...@@ -245,10 +244,8 @@ static int32_t mndProcessConnectReq(SRpcMsg *pReq) {
goto _OVER; goto _OVER;
} }
int32_t udfdPid = -1;
udfGetUdfdPid(&udfdPid);
// if connection is from udfd, no user/password/db check // if connection is from udfd, no user/password/db check
if (udfdPid == connReq.pid) { if (strcmp(connReq.app, "udfd") == 0) {
goto _CONNECT; goto _CONNECT;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册