mirror of
https://github.com/curl/curl.git
synced 2026-05-15 04:06:19 +03:00
Fix tftp and sftp supported protocols in servername_str()
This commit is contained in:
parent
82f5ffff8f
commit
b32a96eda0
1 changed files with 1 additions and 1 deletions
|
|
@ -70,7 +70,7 @@ sub servername_str {
|
|||
|
||||
$proto = uc($proto) if($proto);
|
||||
die "unsupported protocol: $proto" unless($proto &&
|
||||
($proto =~ /^(((FTP|HTTP|IMAP|POP3|SMTP|TFTP)S?)|(SOCKS|SSH))$/));
|
||||
($proto =~ /^(((FTP|HTTP|IMAP|POP3|SMTP)S?)|(TFTP|SFTP|SOCKS|SSH))$/));
|
||||
|
||||
$ipver = (not $ipver) ? 'ipv4' : lc($ipver);
|
||||
die "unsupported IP version: $ipver" unless($ipver &&
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue