socks5_reconnect: handle socks5 server down

Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
fufesou 2022-06-23 10:29:22 +08:00
parent ad2c892192
commit d968ed3029

View File

@ -216,7 +216,7 @@ impl RendezvousMediator {
},
Some(Err(e)) => bail!("Failed to receive next {}", e), // maybe socks5 tcp disconnected
None => {
// unreachable!()
bail!("Socket receive none. Maybe socks5 server is down.");
},
}
},