mirror of
https://github.com/clearml/dropbear
synced 2025-01-31 10:57:01 +00:00
setup tcp after requesting a channel - might hide some DNS latency
This commit is contained in:
parent
7f42096d0f
commit
2fdb5fd6ce
@ -266,13 +266,6 @@ static void cli_sessionloop() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef ENABLE_CLI_LOCALTCPFWD
|
|
||||||
setup_localtcp();
|
|
||||||
#endif
|
|
||||||
#ifdef ENABLE_CLI_REMOTETCPFWD
|
|
||||||
setup_remotetcp();
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef ENABLE_CLI_NETCAT
|
#ifdef ENABLE_CLI_NETCAT
|
||||||
if (cli_opts.netcat_host) {
|
if (cli_opts.netcat_host) {
|
||||||
cli_send_netcat_request();
|
cli_send_netcat_request();
|
||||||
@ -281,6 +274,14 @@ static void cli_sessionloop() {
|
|||||||
if (!cli_opts.no_cmd) {
|
if (!cli_opts.no_cmd) {
|
||||||
cli_send_chansess_request();
|
cli_send_chansess_request();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef ENABLE_CLI_LOCALTCPFWD
|
||||||
|
setup_localtcp();
|
||||||
|
#endif
|
||||||
|
#ifdef ENABLE_CLI_REMOTETCPFWD
|
||||||
|
setup_remotetcp();
|
||||||
|
#endif
|
||||||
|
|
||||||
TRACE(("leave cli_sessionloop: running"))
|
TRACE(("leave cli_sessionloop: running"))
|
||||||
cli_ses.state = SESSION_RUNNING;
|
cli_ses.state = SESSION_RUNNING;
|
||||||
return;
|
return;
|
||||||
|
2
debug.h
2
debug.h
@ -39,7 +39,7 @@
|
|||||||
* Caution: Don't use this in an unfriendly environment (ie unfirewalled),
|
* Caution: Don't use this in an unfriendly environment (ie unfirewalled),
|
||||||
* since the printing may not sanitise strings etc. This will add a reasonable
|
* since the printing may not sanitise strings etc. This will add a reasonable
|
||||||
* amount to your executable size. */
|
* amount to your executable size. */
|
||||||
/* #define DEBUG_TRACE */
|
#define DEBUG_TRACE
|
||||||
|
|
||||||
/* All functions writing to the cleartext payload buffer call
|
/* All functions writing to the cleartext payload buffer call
|
||||||
* CHECKCLEARTOWRITE() before writing. This is only really useful if you're
|
* CHECKCLEARTOWRITE() before writing. This is only really useful if you're
|
||||||
|
Loading…
Reference in New Issue
Block a user