mirror of
https://github.com/moparisthebest/curl
synced 2024-08-13 17:03:50 -04:00
cut out matching host names starting with telnet or ftps, since they hardly
ever actually are used
This commit is contained in:
parent
694f31ca37
commit
5b8d5fdf2f
@ -2511,12 +2511,6 @@ static CURLcode ParseURLAndFillConnection(struct SessionHandle *data,
|
|||||||
|
|
||||||
if(checkprefix("FTP.", conn->host.name))
|
if(checkprefix("FTP.", conn->host.name))
|
||||||
strcpy(conn->protostr, "ftp");
|
strcpy(conn->protostr, "ftp");
|
||||||
#ifdef USE_SSL
|
|
||||||
else if(checkprefix("FTPS", conn->host.name))
|
|
||||||
strcpy(conn->protostr, "ftps");
|
|
||||||
#endif /* USE_SSL */
|
|
||||||
else if(checkprefix("TELNET.", conn->host.name))
|
|
||||||
strcpy(conn->protostr, "telnet");
|
|
||||||
else if (checkprefix("DICT.", conn->host.name))
|
else if (checkprefix("DICT.", conn->host.name))
|
||||||
strcpy(conn->protostr, "DICT");
|
strcpy(conn->protostr, "DICT");
|
||||||
else if (checkprefix("LDAP.", conn->host.name))
|
else if (checkprefix("LDAP.", conn->host.name))
|
||||||
|
Loading…
Reference in New Issue
Block a user