From: Yang Tse Date: Tue, 12 Jan 2010 22:11:13 +0000 (+0000) Subject: Fix tftp and sftp supported protocols in servername_str() X-Git-Tag: curl-7_20_0~153 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b32a96eda015e47eda24338937d271c47f5ce38e;p=thirdparty%2Fcurl.git Fix tftp and sftp supported protocols in servername_str() --- diff --git a/tests/serverhelp.pm b/tests/serverhelp.pm index 35dda01c5f..53aeb79cbe 100644 --- a/tests/serverhelp.pm +++ b/tests/serverhelp.pm @@ -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 &&