[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    [PATCH] telnet: provide feedback after successful connect
From:       Danijel Tasov <busybox () ml ! rbfh ! de>
Date:       2018-12-20 10:21:32
Message-ID: 1545301292-30047-1-git-send-email-busybox () ml ! rbfh ! de
[Download RAW message or body]

From: Danijel Tasov <m@rbfh.de>

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.

Signed-off-by: Danijel Tasov <m@rbfh.de>
---
 networking/telnet.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/networking/telnet.c b/networking/telnet.c
index 1e6be85..1010a7b 100644
--- a/networking/telnet.c
+++ b/networking/telnet.c
@@ -649,6 +649,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);
 
-- 
2.1.4

_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic