mirror of
https://github.com/moparisthebest/curl
synced 2024-08-13 17:03:50 -04:00
url: Added smtp and pop3 hostnames to the protocol detection list
This commit is contained in:
parent
2c0d65785f
commit
2af9fd4960
@ -3771,6 +3771,10 @@ static CURLcode parseurlandfillconn(struct SessionHandle *data,
|
|||||||
protop = "LDAP";
|
protop = "LDAP";
|
||||||
else if(checkprefix("IMAP.", conn->host.name))
|
else if(checkprefix("IMAP.", conn->host.name))
|
||||||
protop = "IMAP";
|
protop = "IMAP";
|
||||||
|
else if(checkprefix("SMTP.", conn->host.name))
|
||||||
|
protop = "smtp";
|
||||||
|
else if(checkprefix("POP3.", conn->host.name))
|
||||||
|
protop = "pop3";
|
||||||
else {
|
else {
|
||||||
protop = "http";
|
protop = "http";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user