} else if (*p) {
char *q = p;
/*
} else if (*p) {
char *q = p;
/*
- * If the hostname starts with "telnet://", set the
+ * If the hostname starts with "telnet:", set the
* protocol to Telnet and process the string as a
* Telnet URL.
*/
* protocol to Telnet and process the string as a
* Telnet URL.
*/
- if (!strncmp(q, "telnet://", 9)) {
+ if (!strncmp(q, "telnet:", 7)) {
+ q += 7;
+ if (q[0] == '/' && q[1] == '/')
+ q += 2;
cfg.protocol = PROT_TELNET;
p = q;
while (*p && *p != ':' && *p != '/') p++;
cfg.protocol = PROT_TELNET;
p = q;
while (*p && *p != ':' && *p != '/') p++;