Entry wireguard tickets (#4888)

* Create credential verifier in authenticator

* Add new version of peer storage with client id

* Fix v1 to what it was before

* Compact storage into ecash verifier

* Fix non-linux build

* Less overlapping conditions

* Remove moved code

* Use handler thread for each peer

* Re-spawn stored handles at startup

* Keep new function without async & Result

* Put query peer in function too

* Query bandwidth

* Fix clippy

* Replace tap with inspect_err

* Fix copyright year

* Handle version 2 on the reqeust deser

* Add protocol type in req/resp messages
This commit is contained in:
Bogdan-Ștefan Neacşu
2024-09-23 14:49:18 +02:00
committed by GitHub
parent 2f267cf787
commit 95ec91daa1
44 changed files with 1433 additions and 470 deletions
+2 -2
View File
@@ -37,7 +37,7 @@ use rand::rngs::OsRng;
use rand::{CryptoRng, RngCore};
use std::path::Path;
use std::sync::Arc;
use tokio::sync::mpsc::UnboundedReceiver;
use tokio::sync::mpsc;
use tracing::{debug, error, info, trace};
use zeroize::Zeroizing;
@@ -274,7 +274,7 @@ impl ExitGatewayData {
pub struct WireguardData {
inner: WireguardGatewayData,
peer_rx: UnboundedReceiver<PeerControlRequest>,
peer_rx: mpsc::Receiver<PeerControlRequest>,
}
impl WireguardData {