]> asedeno.scripts.mit.edu Git - PuTTY.git/blobdiff - plink.c
Add a configuration option for TCP keepalives (SO_KEEPALIVE), default off.
[PuTTY.git] / plink.c
diff --git a/plink.c b/plink.c
index a0a9541ab91a3743793f15ea1433b4b80a07d9fa..92769e866e78e0c63551e26517cf38258a43e407 100644 (file)
--- a/plink.c
+++ b/plink.c
@@ -564,7 +564,7 @@ int main(int argc, char **argv)
            (GetFileType(GetStdHandle(STD_INPUT_HANDLE)) == FILE_TYPE_CHAR);
 
        error = back->init(NULL, &backhandle, &cfg, cfg.host, cfg.port,
-                          &realhost, nodelay);
+                          &realhost, nodelay, cfg.tcp_keepalives);
        if (error) {
            fprintf(stderr, "Unable to open connection:\n%s", error);
            return 1;