@@ -10,9 +10,9 @@ use crate::sandbox;
1010#[ cfg( target_os = "linux" ) ]
1111use crate :: { register_managed_child, unregister_managed_child} ;
1212use miette:: { IntoDiagnostic , Result } ;
13- use openshell_core:: net:: enable_tcp_keepalive;
1413use nix:: pty:: { Winsize , openpty} ;
1514use nix:: unistd:: setsid;
15+ use openshell_core:: net:: enable_tcp_keepalive;
1616use rand_core:: OsRng ;
1717use russh:: keys:: { Algorithm , PrivateKey } ;
1818use russh:: server:: { Auth , Handle , Session } ;
@@ -542,7 +542,7 @@ impl russh::server::Handler for SshHandler {
542542 self . ca_file_paths . clone ( ) ,
543543 & self . provider_env ,
544544 ) ?;
545- self . input_sender = Some ( input_sender) ;
545+ self . channel_state ( channel ) . input_sender = Some ( input_sender) ;
546546 } else {
547547 warn ! ( subsystem = name, "unsupported subsystem requested" ) ;
548548 session. channel_failure ( channel) ?;
@@ -1207,8 +1207,8 @@ fn is_loopback_host(host: &str) -> bool {
12071207#[ cfg( test) ]
12081208mod tests {
12091209 use super :: * ;
1210- use std:: process:: Stdio ;
12111210 use crate :: policy:: { FilesystemPolicy , LandlockPolicy , NetworkPolicy , ProcessPolicy } ;
1211+ use std:: process:: Stdio ;
12121212
12131213 fn test_channel_id ( id : u32 ) -> ChannelId {
12141214 #[ allow( unsafe_code) ]
0 commit comments