Perfect sim is working!
This commit is contained in:
parent
4ac512121b
commit
438392da1d
3 changed files with 44 additions and 30 deletions
|
|
@ -105,6 +105,10 @@ impl<H: PeerConnectionHandler> PeerConnection<H> {
|
|||
) -> anyhow::Result<()> {
|
||||
use tokio::io::AsyncWriteExt;
|
||||
|
||||
if self.addr.ip().to_string() != "213.189.217.38" {
|
||||
bail!("bad ip")
|
||||
}
|
||||
|
||||
let rwtimeout = self
|
||||
.options
|
||||
.read_write_timeout
|
||||
|
|
@ -149,6 +153,10 @@ impl<H: PeerConnectionHandler> PeerConnection<H> {
|
|||
&self,
|
||||
outgoing_chan: tokio::sync::mpsc::UnboundedReceiver<WriterRequest>,
|
||||
) -> anyhow::Result<()> {
|
||||
if self.addr.ip().to_string() != "213.189.217.38" {
|
||||
bail!("bad ip")
|
||||
}
|
||||
|
||||
use tokio::io::AsyncWriteExt;
|
||||
let rwtimeout = self
|
||||
.options
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue