From 4054c36d5e3386fe6476d27e5908be81345733ca Mon Sep 17 00:00:00 2001 From: Igor Katson Date: Wed, 1 May 2024 21:10:52 +0100 Subject: [PATCH] Revert "allowlist ip" This reverts commit 1860cc632724c1cb70b026e969e104d1f657aac4. --- crates/librqbit/src/peer_connection.rs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/crates/librqbit/src/peer_connection.rs b/crates/librqbit/src/peer_connection.rs index 34028ca..3468cd7 100644 --- a/crates/librqbit/src/peer_connection.rs +++ b/crates/librqbit/src/peer_connection.rs @@ -103,9 +103,6 @@ impl PeerConnection { handshake: Handshake, mut conn: tokio::net::TcpStream, ) -> anyhow::Result<()> { - if self.addr.ip().to_string() != "213.189.217.38" { - bail!("DEBUG, NOT MY PEER") - } use tokio::io::AsyncWriteExt; let rwtimeout = self @@ -153,9 +150,6 @@ impl PeerConnection { outgoing_chan: tokio::sync::mpsc::UnboundedReceiver, ) -> anyhow::Result<()> { use tokio::io::AsyncWriteExt; - if self.addr.ip().to_string() != "213.189.217.38" { - bail!("DEBUG, NOT MY PEER") - } let rwtimeout = self .options