X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/5555d393c727cca12fce612a469bacb9b627eb3b..47489d8daef971352cfb1ec30c998ed7b048c97c:/plink.c diff --git a/plink.c b/plink.c index 7ada2d48..7bd1f901 100644 --- a/plink.c +++ b/plink.c @@ -69,6 +69,7 @@ WSAEVENT netevent; static Backend *back; static void *backhandle; +static Config cfg; int term_ldisc(Terminal *term, int mode) { @@ -539,14 +540,15 @@ int main(int argc, char **argv) int nodelay = cfg.tcp_nodelay && (GetFileType(GetStdHandle(STD_INPUT_HANDLE)) == FILE_TYPE_CHAR); - error = back->init(NULL, &backhandle, cfg.host, cfg.port, + error = back->init(NULL, &backhandle, &cfg, cfg.host, cfg.port, &realhost, nodelay); if (error) { fprintf(stderr, "Unable to open connection:\n%s", error); return 1; } - logctx = log_init(NULL); + logctx = log_init(NULL, &cfg); back->provide_logctx(backhandle, logctx); + console_provide_logctx(logctx); sfree(realhost); } connopen = 1;