File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 53
53
with :
54
54
path : target
55
55
key : target-${{ runner.os }}-${{ steps.rust-version.outputs.version }}-${{ hashFiles('Cargo.lock') }}
56
- - run : cargo test
57
- - run : cargo test --features alpn
58
56
- run : cargo test --features vendored
57
+ - run : cargo test --features vendored,alpn
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ static PROTOCOLS: &'static [Protocol] = &[
22
22
23
23
fn convert_protocols ( min : Option < :: Protocol > , max : Option < :: Protocol > ) -> & ' static [ Protocol ] {
24
24
let mut protocols = PROTOCOLS ;
25
- if let Some ( p) = max. and_then ( |max| protocols. get ( ..max as usize ) ) {
25
+ if let Some ( p) = max. and_then ( |max| protocols. get ( ..= max as usize ) ) {
26
26
protocols = p;
27
27
}
28
28
if let Some ( p) = min. and_then ( |min| protocols. get ( min as usize ..) ) {
Original file line number Diff line number Diff line change @@ -261,6 +261,7 @@ fn server_no_shared_protocol() {
261
261
let socket = p ! ( TcpStream :: connect( ( "localhost" , port) ) ) ;
262
262
let builder = p ! ( TlsConnector :: builder( )
263
263
. add_root_certificate( root_ca)
264
+ . min_protocol_version( Some ( Protocol :: Tlsv11 ) )
264
265
. max_protocol_version( Some ( Protocol :: Tlsv11 ) )
265
266
. build( ) ) ;
266
267
assert ! ( builder. connect( "localhost" , socket) . is_err( ) ) ;
You can’t perform that action at this time.
0 commit comments