From 3f4fac577a83146ac69bf617a29cf192099cded0 Mon Sep 17 00:00:00 2001 From: Danijel Tasov Date: Sun, 6 Jan 2019 19:20:05 +0100 Subject: [PATCH] telnet: provide feedback after successful connect The real telnet provides some feedback: Trying 127.0.0.1... Connected to localhost.localdomain. Escape character is '^]'. We should do this to, because people are sitting there and think a firewall is dropping packets. function old new delta telnet_main 1270 1279 +9 Signed-off-by: Danijel Tasov Signed-off-by: Denys Vlasenko --- networking/telnet.c | 1 + 1 file changed, 1 insertion(+) diff --git a/networking/telnet.c b/networking/telnet.c index 6b4accd33..94c7512fc 100644 --- a/networking/telnet.c +++ b/networking/telnet.c @@ -639,6 +639,7 @@ int telnet_main(int argc UNUSED_PARAM, char **argv) bb_show_usage(); xmove_fd(create_and_connect_stream_or_die(host, port), netfd); + printf("Connected to %s\n", host); setsockopt_keepalive(netfd);