X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/0965bee0865fd8ea129b2de62a3c50e09c59a184..36c2a3e973d98c12f9069e41522494e9f04c73e3:/plink.c diff --git a/plink.c b/plink.c index 6cbc2f6d..5efcd454 100644 --- a/plink.c +++ b/plink.c @@ -387,7 +387,7 @@ int main(int argc, char **argv) { /* No settings for this host; use defaults */ strncpy(cfg.host, p, sizeof(cfg.host)-1); cfg.host[sizeof(cfg.host)-1] = '\0'; - cfg.port = 22; + cfg.port = default_port; } else cfg = cfg2; } else { @@ -396,7 +396,7 @@ int main(int argc, char **argv) { cfg.username[sizeof(cfg.username)-1] = '\0'; strncpy(cfg.host, r, sizeof(cfg.host)-1); cfg.host[sizeof(cfg.host)-1] = '\0'; - cfg.port = 22; + cfg.port = default_port; } } } else {