fix: use appname to see whether it is udfd

This commit is contained in:
shenglian zhou 2023-06-26 07:53:00 +08:00
parent 6de507d392
commit 2f9c8417b6
1 changed files with 1 additions and 4 deletions

View File

@ -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) {
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;
} }