Skip to content

Commit

Permalink
use google for doc example
Browse files Browse the repository at this point in the history
  • Loading branch information
lulf committed Aug 1, 2024
1 parent 9de49c2 commit dded9a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ use tokio::net::TcpStream;
#[tokio::main]
async fn main() {
let stream = TcpStream::connect("http.sandbox.drogue.cloud:443")
let stream = TcpStream::connect("google.com:443")
.await
.expect("error creating TCP connection");
println!("TCP connection opened");
let mut read_record_buffer = [0; 16384];
let mut write_record_buffer = [0; 16384];
let config = TlsConfig::new().with_server_name("http.sandbox.drogue.cloud");
let config = TlsConfig::new().with_server_name("google.com").enable_rsa_signatures();
let mut tls = TlsConnection::new(
FromTokio::new(stream),
&mut read_record_buffer,
Expand Down

0 comments on commit dded9a6

Please sign in to comment.