mirror of
https://github.com/curl/curl.git
synced 2026-07-16 08:07:17 +03:00
Check that all servers in the <server> section are supported, not just
the first.
This commit is contained in:
parent
f9cfef3599
commit
3f55ed0ef7
1 changed files with 8 additions and 6 deletions
|
|
@ -2376,12 +2376,14 @@ sub serverfortest {
|
|||
return "no server specified";
|
||||
}
|
||||
|
||||
my $proto = lc($what[0]);
|
||||
chomp $proto;
|
||||
if (! grep /^$proto$/, @protocols) {
|
||||
if (substr($proto,0,5) ne "socks") {
|
||||
return "curl lacks any $proto support";
|
||||
}
|
||||
for (@what) {
|
||||
my $proto = lc($_);
|
||||
chomp $proto;
|
||||
if (! grep /^$proto$/, @protocols) {
|
||||
if (substr($proto,0,5) ne "socks") {
|
||||
return "curl lacks any $proto support";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return &startservers(@what);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue