Commit 3f55ed0e authored by Dan Fandrich's avatar Dan Fandrich
Browse files

Check that all servers in the <server> section are supported, not just

the first.
parent f9cfef35
Loading
Loading
Loading
Loading
+8 −6
Original line number Diff line number Diff line
@@ -2376,13 +2376,15 @@ sub serverfortest {
        return "no server specified";
    }

    my $proto = lc($what[0]);
    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);
}