mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-15 04:25:58 +08:00
shell登录鉴权改成广播方式
删除rtsp/rtmp shell命令,添加media命令 加载配置文件后发送广播
This commit is contained in:
@@ -48,22 +48,16 @@ public:
|
||||
void onError(const SockException &err) override {};
|
||||
void onManager() override;
|
||||
|
||||
static void addUser(const string &userName,const string &userPwd){
|
||||
g_mapUser[userName] = userPwd;
|
||||
}
|
||||
private:
|
||||
inline bool onCommandLine(const string &);
|
||||
inline bool onAuth(const string &user, const string &pwd);
|
||||
inline void pleaseInputUser();
|
||||
inline void pleaseInputPasswd();
|
||||
inline void printShellPrefix();
|
||||
|
||||
function<bool(const string &)> m_requestCB;
|
||||
function<bool(const string &)> m_loginInterceptor;
|
||||
string m_strRecvBuf;
|
||||
Ticker m_beatTicker;
|
||||
string m_strUserName;
|
||||
|
||||
static unordered_map<string, string> g_mapUser;
|
||||
};
|
||||
|
||||
} /* namespace Shell */
|
||||
|
||||
Reference in New Issue
Block a user