summaryrefslogtreecommitdiff
path: root/networking
diff options
context:
space:
mode:
authorDanijel Tasov2019-01-06 19:20:05 +0100
committerDenys Vlasenko2019-01-06 19:20:05 +0100
commit3f4fac577a83146ac69bf617a29cf192099cded0 (patch)
tree80cd85b583beb3f7d68c3f12af9b8980e0e8d731 /networking
parent39b18196f89a6f595d47c2a9c3a62c50d413c054 (diff)
downloadbusybox-3f4fac577a83146ac69bf617a29cf192099cded0.zip
busybox-3f4fac577a83146ac69bf617a29cf192099cded0.tar.gz
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 <m@rbfh.de> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking')
-rw-r--r--networking/telnet.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/networking/telnet.c b/networking/telnet.c
index 6b4accd..94c7512 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);