mirror of
https://github.com/EFForg/rayhunter.git
synced 2026-05-01 18:00:00 -07:00
do not use debug_assert
This commit is contained in:
committed by
Will Greenberg
parent
8fb27b08f9
commit
05fdc0eee2
@@ -19,7 +19,10 @@ pub async fn telnet_send_command_with_output(
|
||||
command: &str,
|
||||
wait_for_prompt: bool,
|
||||
) -> Result<String> {
|
||||
debug_assert!(!command.contains('\n'));
|
||||
if command.contains('\n') {
|
||||
bail!("multi-line commands are not allowed");
|
||||
}
|
||||
|
||||
let stream = TcpStream::connect(addr).await?;
|
||||
let (mut reader, mut writer) = stream.into_split();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user