mirror of
https://github.com/Noratrieb/cluelessh.git
synced 2026-01-15 00:45:06 +01:00
more things
This commit is contained in:
parent
a092cfd494
commit
9532065b16
4 changed files with 240 additions and 44 deletions
|
|
@ -154,6 +154,13 @@ impl ClientConnection {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn channels(&mut self) -> Option<&mut ssh_connection::ChannelsState> {
|
||||
match &mut self.state {
|
||||
ClientConnectionState::Open(channels) => Some(channels),
|
||||
_ => None,
|
||||
}
|
||||
}
|
||||
|
||||
pub fn is_open(&self) -> bool {
|
||||
matches!(self.state, ClientConnectionState::Open(_))
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue