mirror of https://github.com/tp4a/teleport
pull/105/head
parent
f286f7d718
commit
1b92d81d89
|
@ -73,6 +73,9 @@ bool tpp_session_begin(const TPP_CONNECT_INFO* info, int* db_id)
|
|||
|
||||
TS_CONNECT_INFO sinfo;
|
||||
sinfo.sid = info->sid;
|
||||
sinfo.user_id = info->user_id;
|
||||
sinfo.host_id = info->host_id;
|
||||
sinfo.account_id = info->account_id;
|
||||
sinfo.user_name = info->user_name;
|
||||
sinfo.real_remote_host_ip = info->real_remote_host_ip;
|
||||
sinfo.remote_host_ip = info->remote_host_ip;
|
||||
|
|
|
@ -179,6 +179,9 @@ bool ts_web_rpc_session_begin(TS_CONNECT_INFO& info, int& record_id)
|
|||
|
||||
jreq["method"] = "session_begin";
|
||||
jreq["param"]["sid"] = info.sid.c_str();
|
||||
jreq["param"]["user_id"] = info.user_id;
|
||||
jreq["param"]["host_id"] = info.host_id;
|
||||
jreq["param"]["account_id"] = info.account_id;
|
||||
jreq["param"]["user_name"] = info.user_name.c_str();
|
||||
jreq["param"]["account_name"] = info.account_name.c_str();
|
||||
jreq["param"]["real_remote_host_ip"] = info.real_remote_host_ip.c_str();
|
||||
|
|
Loading…
Reference in New Issue