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 5353 with :
5454 path : target
5555 key : target-${{ runner.os }}-${{ steps.rust-version.outputs.version }}-${{ hashFiles('Cargo.lock') }}
56- - run : cargo test
57- - run : cargo test --features alpn
5856 - 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] = &[
2222
2323fn convert_protocols ( min : Option < :: Protocol > , max : Option < :: Protocol > ) -> & ' static [ Protocol ] {
2424 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 ) ) {
2626 protocols = p;
2727 }
2828 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() {
261261 let socket = p ! ( TcpStream :: connect( ( "localhost" , port) ) ) ;
262262 let builder = p ! ( TlsConnector :: builder( )
263263 . add_root_certificate( root_ca)
264+ . min_protocol_version( Some ( Protocol :: Tlsv11 ) )
264265 . max_protocol_version( Some ( Protocol :: Tlsv11 ) )
265266 . build( ) ) ;
266267 assert ! ( builder. connect( "localhost" , socket) . is_err( ) ) ;
You can’t perform that action at this time.
0 commit comments