diff --git a/Cargo.toml b/Cargo.toml index b4f904b..13552f0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tapir-cwtch" -version = "0.1.5" +version = "0.1.6" authors = ["Sarah Jamie Lewis "] edition = "2018" license = "MIT" diff --git a/examples/simple_client.rs b/examples/simple_client.rs index 697da51..18c6cd1 100644 --- a/examples/simple_client.rs +++ b/examples/simple_client.rs @@ -24,7 +24,7 @@ fn main() { } } }; - match service.connect("kaouzo6mkagk5vin663iqq4d2jctkkoh62avglamheohgdz5y7gu7eyd", outbound_service.clone()) { + match service.connect("we5hvq7s6uvrdxf5hfqis6xd3s2yxl3jtpway5ziivbtsxunwaee6eyd", outbound_service.clone()) { _ => {} } loop {} diff --git a/src/acns/tor/mod.rs b/src/acns/tor/mod.rs index ef8e1f0..8008d00 100644 --- a/src/acns/tor/mod.rs +++ b/src/acns/tor/mod.rs @@ -64,7 +64,7 @@ impl TorProcess { let esk = ExpandedSecretKey::from(&secret_key); match write!( self.conn, - "ADD_ONION ED25519-V3:{} Flags=Detach Port={},{}\r\n", + "ADD_ONION ED25519-V3:{} Port={},{}\r\n", base64::encode(esk.to_bytes()), virtual_port, target_port diff --git a/src/connections/mod.rs b/src/connections/mod.rs index 1765010..decafa0 100644 --- a/src/connections/mod.rs +++ b/src/connections/mod.rs @@ -87,8 +87,7 @@ impl ConnectionInterface for Connection { let secret_box = SecretBox::new(&self.key, Salsa20).unwrap(); let mut result = [0u8; 8192]; match self.conn.read_exact(&mut result) { - Err(e) => { - //eprintln!("{}", e.to_string()); + Err(_e) => { return vec![]; } _ => {} @@ -105,7 +104,6 @@ impl ConnectionInterface for Connection { let _len_bytes = [0u8; 2]; let len = u16::decode_fixed(&msg[0..2]) as usize; if len > 8192 { - //eprintln!("invalid length: {}", len); return vec![]; // lol no. } msg[2..len + 2].to_vec()