From 3be8e1192f2c8b6d1f4f3f85c38a11768ad63a7a Mon Sep 17 00:00:00 2001 From: dvkt Date: Fri, 27 Dec 2019 21:10:30 -0800 Subject: [PATCH] some clients need \ts --- src/server.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/server.rs b/src/server.rs index 5f4f9a2..a337f77 100644 --- a/src/server.rs +++ b/src/server.rs @@ -144,6 +144,7 @@ where for line in reader.lines() { let mut line = line?.trim_end_matches("\r\n").to_string(); match line.chars().filter(|&c| c == '\t').count() { + 0 => line.push_str(&format!("\t(null)\t{}\t{}", req.host, req.port)), 1 => line.push_str(&format!("\t{}\t{}", req.host, req.port)), 2 => line.push_str(&format!("\t{}", req.port)), _ => {}