fix conn log
This commit is contained in:
parent
0e6bd87e19
commit
1bcac047aa
@ -175,7 +175,6 @@ pub struct Connection {
|
|||||||
tx_input: std_mpsc::Sender<MessageInput>,
|
tx_input: std_mpsc::Sender<MessageInput>,
|
||||||
// handle input messages
|
// handle input messages
|
||||||
video_ack_required: bool,
|
video_ack_required: bool,
|
||||||
peer_info: (String, String),
|
|
||||||
server_audit_conn: String,
|
server_audit_conn: String,
|
||||||
server_audit_file: String,
|
server_audit_file: String,
|
||||||
lr: LoginRequest,
|
lr: LoginRequest,
|
||||||
@ -306,7 +305,6 @@ impl Connection {
|
|||||||
disable_keyboard: false,
|
disable_keyboard: false,
|
||||||
tx_input,
|
tx_input,
|
||||||
video_ack_required: false,
|
video_ack_required: false,
|
||||||
peer_info: Default::default(),
|
|
||||||
server_audit_conn: "".to_owned(),
|
server_audit_conn: "".to_owned(),
|
||||||
server_audit_file: "".to_owned(),
|
server_audit_file: "".to_owned(),
|
||||||
lr: Default::default(),
|
lr: Default::default(),
|
||||||
@ -955,7 +953,9 @@ impl Connection {
|
|||||||
} else {
|
} else {
|
||||||
0
|
0
|
||||||
};
|
};
|
||||||
self.post_conn_audit(json!({"peer": self.peer_info, "type": conn_type}));
|
self.post_conn_audit(
|
||||||
|
json!({"peer": ((&self.lr.my_id, &self.lr.my_name)), "type": conn_type}),
|
||||||
|
);
|
||||||
#[allow(unused_mut)]
|
#[allow(unused_mut)]
|
||||||
let mut username = crate::platform::get_active_username();
|
let mut username = crate::platform::get_active_username();
|
||||||
let mut res = LoginResponse::new();
|
let mut res = LoginResponse::new();
|
||||||
@ -1142,7 +1142,6 @@ impl Connection {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn try_start_cm(&mut self, peer_id: String, name: String, authorized: bool) {
|
fn try_start_cm(&mut self, peer_id: String, name: String, authorized: bool) {
|
||||||
self.peer_info = (peer_id.clone(), name.clone());
|
|
||||||
self.send_to_cm(ipc::Data::Login {
|
self.send_to_cm(ipc::Data::Login {
|
||||||
id: self.inner.id(),
|
id: self.inner.id(),
|
||||||
is_file_transfer: self.file_transfer.is_some(),
|
is_file_transfer: self.file_transfer.is_some(),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user