mirror of
https://github.com/Noratrieb/cluelessh.git
synced 2026-01-15 08:55:06 +01:00
stuff
This commit is contained in:
parent
cb504817d3
commit
ad84db6998
2 changed files with 18 additions and 20 deletions
21
src/main.rs
21
src/main.rs
|
|
@ -95,23 +95,14 @@ async fn handle_connection(next: (TcpStream, SocketAddr)) -> Result<()> {
|
|||
},
|
||||
ChannelUpdateKind::Request(req) => {
|
||||
match req.kind {
|
||||
ChannelRequestKind::PtyReq { .. } => {
|
||||
if req.want_reply {
|
||||
state.do_operation(
|
||||
update.number.construct_op(ChannelOperationKind::Success),
|
||||
);
|
||||
}
|
||||
}
|
||||
ChannelRequestKind::Shell => {
|
||||
if req.want_reply {
|
||||
state.do_operation(
|
||||
update.number.construct_op(ChannelOperationKind::Success),
|
||||
);
|
||||
}
|
||||
}
|
||||
ChannelRequestKind::PtyReq { .. } => {}
|
||||
ChannelRequestKind::Shell => {}
|
||||
ChannelRequestKind::Exec { .. } => {}
|
||||
};
|
||||
if req.want_reply {
|
||||
// TODO: sent the reply.
|
||||
state.do_operation(
|
||||
update.number.construct_op(ChannelOperationKind::Success),
|
||||
);
|
||||
}
|
||||
}
|
||||
ChannelUpdateKind::Data { data } => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue