From ca6b8896329a1f21c7bb534f026d406b67219898 Mon Sep 17 00:00:00 2001 From: Daniel Karzel Date: Tue, 22 Jun 2021 17:06:21 +1000 Subject: [PATCH 1/2] Remove dead code --- swap/src/tor.rs | 28 +--------------------------- 1 file changed, 1 insertion(+), 27 deletions(-) diff --git a/swap/src/tor.rs b/swap/src/tor.rs index 97978b0c..4a6b3e3e 100644 --- a/swap/src/tor.rs +++ b/swap/src/tor.rs @@ -1,6 +1,6 @@ use anyhow::{anyhow, bail, Context, Result}; use std::future::Future; -use std::net::{IpAddr, Ipv4Addr, SocketAddr, SocketAddrV4}; +use std::net::{Ipv4Addr, SocketAddr, SocketAddrV4}; use tokio::net::TcpStream; use torut::control::{AsyncEvent, AuthenticatedConn, ConnError, UnauthenticatedConn}; use torut::onion::TorSecretKeyV3; @@ -111,32 +111,6 @@ pub struct AuthenticatedClient { } impl AuthenticatedClient { - /// Add an ephemeral tor service on localhost with the provided key - /// `service_port` and `onion_port` can be different but don't have to as - /// they are on different networks. - pub async fn add_service( - &mut self, - service_port: u16, - onion_port: u16, - tor_key: &TorSecretKeyV3, - ) -> Result<()> { - self.inner - .add_onion_v3( - tor_key, - false, - false, - false, - None, - &mut [( - onion_port, - SocketAddr::new(IpAddr::from(Ipv4Addr::new(127, 0, 0, 1)), service_port), - )] - .iter(), - ) - .await - .map_err(|e| anyhow!("Could not add onion service.: {:#?}", e)) - } - /// Add an ephemeral tor service on localhost with the provided key /// `service_port` and `onion_port` can be different but don't have to as /// they are on different networks. From 1e9df54699c3af5a97a9e1ebcd5fb255f1e6625e Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 22 Jun 2021 11:07:35 +0000 Subject: [PATCH 2/2] Bump reqwest from 0.11.3 to 0.11.4 Bumps [reqwest](https://github.com/seanmonstar/reqwest) from 0.11.3 to 0.11.4. - [Release notes](https://github.com/seanmonstar/reqwest/releases) - [Changelog](https://github.com/seanmonstar/reqwest/blob/master/CHANGELOG.md) - [Commits](https://github.com/seanmonstar/reqwest/compare/v0.11.3...v0.11.4) --- updated-dependencies: - dependency-name: reqwest dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- Cargo.lock | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 8e9ae98e..ffa9f6b3 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3209,9 +3209,9 @@ dependencies = [ [[package]] name = "reqwest" -version = "0.11.3" +version = "0.11.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2296f2fac53979e8ccbc4a1136b25dcefd37be9ed7e4a1f6b05a6029c84ff124" +checksum = "246e9f61b9bb77df069a947682be06e31ac43ea37862e244a69f177694ea6d22" dependencies = [ "base64 0.13.0", "bytes 1.0.1",