519c519,552 < } else { --- > } else if (!strncmp(q, "ssh:", 4)) { > /* > * If the hostname starts with "ssh:", > * set the protocol to SSH and process > * the string as a SSH URL > */ > char c; > > q += 4; > if (q[0] == '/' && q[1] == '/') > q += 2; > cfg.protocol = PROT_SSH; > p = q; > while (*p && *p != ':' && *p != '/') > p++; > c = *p; > if (*p) > *p++ = '\0'; > if (c == ':') > cfg.port = atoi(p); > else > cfg.port = -1; > strncpy(cfg.host, q, sizeof(cfg.host) - 1); > cfg.host[sizeof(cfg.host) - 1] = '\0'; > got_host = 1; > } else if (!strncmp(q, "putty:", 4)) { > int ret = 0; > q += 6; > if (q[0] == '/' && q[1] == '/') q += 2; > if (q[strlen(q) - 1] == '/') q[strlen(q) - 1] = '\0'; > p = q; > ret = cmdline_process_param("-load", p, 1, &cfg); > assert(ret == 2); > } else {