Skip to content

Commit

Permalink
Deprecated v2 onion service stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
teawithsand committed Jul 2, 2021
1 parent 87bcde2 commit caed51d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/control/conn/authenticated_conn.rs
Original file line number Diff line number Diff line change
Expand Up @@ -546,6 +546,10 @@ impl<S, F, H> AuthenticatedConn<S, H>
Ok(res)
}

#[deprecated(
since = "0.1.10",
note = "V2 onion services are deprecated by tor and soon will stop working; It will be removed in next release"
)]
#[cfg(any(feature = "v2"))]
/// add_onion sends `ADD_ONION` command which spins up new onion service.
/// Using given tor secret key and some configuration values.
Expand Down
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(deprecated)] // torut uses deprecated v2 services for now. this quick hack prevents warning from displaying themselves
//! Torut implements tor control protocol [described here](https://gitweb.torproject.org/torspec.git/tree/control-spec.txt)
//!
//! Right now torut does not implement all methods but it gives access to raw calls so you can use it.
Expand Down
4 changes: 4 additions & 0 deletions src/onion/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ pub use v2::*;
pub use v3::*;

#[cfg(feature = "v2")]
#[deprecated(
since = "0.1.10",
note = "V2 onion services are deprecated by tor and soon will stop working; It will be removed in next release"
)]
mod v2;

#[cfg(feature = "v3")]
Expand Down

0 comments on commit caed51d

Please sign in to comment.