2 Komitmen 09086a48cb ... 814af20b60

Pembuat SHA1 Pesan Tanggal
  Michael Buesch 814af20b60 Add support for UDP control port 2 minggu lalu
  Michael Buesch 09086a48cb Add support for UDP control port 2 minggu lalu
3 mengubah file dengan 3 tambahan dan 3 penghapusan
  1. 1 1
      letmeind/src/main.rs
  2. 1 1
      letmeind/src/protocol.rs
  3. 1 1
      letmeind/src/server.rs

+ 1 - 1
letmeind/src/main.rs

@@ -226,7 +226,7 @@ async fn async_main(opts: Arc<Opts>) -> ah::Result<()> {
                             let conn = Arc::clone(&conn);
                             task::spawn(async move {
                                 let conf = conf.read().await;
-                                let mut proto = Protocol::new(&conn, &conf, &opts.rundir);
+                                let mut proto = Protocol::new(&*conn, &conf, &opts.rundir);
                                 if let Err(e) = proto.run().await {
                                     eprintln!("Client '{}' ERROR: {}", proto.peer_addr().ip(), e);
                                 }

+ 1 - 1
letmeind/src/protocol.rs

@@ -31,7 +31,7 @@ enum AuthState {
 }
 
 /// Implementation of the wire protocol message sequence.
-pub struct Protocol<'a, C: ConnectionOps> {
+pub struct Protocol<'a, C> {
     conn: &'a C,
     conf: &'a Config,
     rundir: &'a Path,

+ 1 - 1
letmeind/src/server.rs

@@ -46,7 +46,7 @@ impl Connection {
     }
 }
 
-impl ConnectionOps for Arc<Connection> {
+impl ConnectionOps for Connection {
     fn peer_addr(&self) -> SocketAddr {
         self.peer_addr
     }