diff --git a/src/relay/tcprelay/http_local.rs b/src/relay/tcprelay/http_local.rs index 9adfeedb..81c708de 100644 --- a/src/relay/tcprelay/http_local.rs +++ b/src/relay/tcprelay/http_local.rs @@ -885,7 +885,10 @@ pub async fn run(context: SharedContext) -> io::Result<()> { return Err(Error::new(ErrorKind::Other, err)); } } - _ => unreachable!("http_local::run shouldn't used with {:?}", context.config().config_type), + _ => unreachable!( + "http_local::run shouldn't be used with {:?}", + context.config().config_type + ), } Ok(()) diff --git a/src/relay/tcprelay/http_tls/rustls.rs b/src/relay/tcprelay/http_tls/rustls.rs index 1e6c696d..c57ba4db 100644 --- a/src/relay/tcprelay/http_tls/rustls.rs +++ b/src/relay/tcprelay/http_tls/rustls.rs @@ -71,7 +71,7 @@ impl TlsAcceptor { let err = io::Error::new(io::ErrorKind::Other, format!("setting certificate: {}", err)); return Err(err); } - config.set_protocols(&["h2".into(), "http/1.1".into()]); + // config.set_protocols(&["h2".into(), "http/1.1".into()]); let server_config = Arc::new(config); @@ -101,7 +101,7 @@ impl TlsAcceptor { match rustls::internal::pemfile::rsa_private_keys(&mut BufReader::new(key)) { Ok(pk) => Ok(pk), Err(..) => { - let err = io::Error::new(io::ErrorKind::InvalidData, "error while loading PKCS #8 private keys"); + let err = io::Error::new(io::ErrorKind::InvalidData, "error while loading RSA private keys"); Err(err) } }