From fb53c019b4c3466da6a7a7562e23a4fe57c0f000 Mon Sep 17 00:00:00 2001 From: Knight Date: Sat, 20 Aug 2016 19:53:31 +0800 Subject: [PATCH] who: limit the parts of split host to 2 --- src/who/who.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/who/who.rs b/src/who/who.rs index 3f5fa402d..29a6e7ee5 100644 --- a/src/who/who.rs +++ b/src/who/who.rs @@ -441,7 +441,7 @@ impl Who { let mut buf = vec![]; let ut_host = ut.host(); - let mut res = ut_host.split(':'); + let mut res = ut_host.splitn(2, ':'); if let Some(h) = res.next() { if self.do_lookup { buf.push(ut.canon_host().unwrap_or(h.to_owned()));