X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/blobdiff_plain/0965bee0865fd8ea129b2de62a3c50e09c59a184..2e8324fc5624af5e4d3de5955bf781cf8a7c027c:/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 {