mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-11-30 13:01:23 +03:00
session: Initialize the port with the standard port (22)
Signed-off-by: Andreas Schneider <asn@cryptomilk.org> Reviewed-by: Jakub Jelen <jjelen@redhat.com>
This commit is contained in:
@@ -104,7 +104,7 @@ ssh_session ssh_new(void)
|
|||||||
|
|
||||||
/* OPTIONS */
|
/* OPTIONS */
|
||||||
session->opts.StrictHostKeyChecking = 1;
|
session->opts.StrictHostKeyChecking = 1;
|
||||||
session->opts.port = 0;
|
session->opts.port = 22;
|
||||||
session->opts.fd = -1;
|
session->opts.fd = -1;
|
||||||
session->opts.compressionlevel = 7;
|
session->opts.compressionlevel = 7;
|
||||||
session->opts.nodelay = 0;
|
session->opts.nodelay = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user