diff --git a/examples/mtls_tunnel_and_service.rs b/examples/mtls_tunnel_and_service.rs index d51de3080..1319c3a68 100644 --- a/examples/mtls_tunnel_and_service.rs +++ b/examples/mtls_tunnel_and_service.rs @@ -20,7 +20,7 @@ //! This won't work as the client is not authorized. You can use `curl` to interact with the service: //! //! ```sh -//! curl -v http://127.0.0.1:62014/hello +//! curl -v http://127.0.0.1:62114/hello //! ``` //! //! You should see a response with `HTTP/1.1 200 OK` and a body with `Hello, authorized client!`. diff --git a/examples/tls_termination.rs b/examples/tls_termination.rs index 4ed2addb0..f2730f849 100644 --- a/examples/tls_termination.rs +++ b/examples/tls_termination.rs @@ -21,7 +21,7 @@ //! //! # Expected output //! -//! The server will start and listen on `:63800`. You can use `curl` to interact with the service: +//! The server will start and listen on `:63850`. You can use `curl` to interact with the service: //! //! ```sh //! curl -v https://127.0.0.1:62800 @@ -32,7 +32,7 @@ //! This one will work however: //! //! ```sh -//! curl -k -v https://127.0.0.1:63800 +//! curl -k -v https://127.0.0.1:63850 //! ``` //! //! You should see a response with `HTTP/1.0 200 ok` and the body `Hello world!`. @@ -92,7 +92,7 @@ async fn main() { ), ); - TcpListener::bind("127.0.0.1:63800") + TcpListener::bind("127.0.0.1:63850") .await .expect("bind TCP Listener: tls") .serve_graceful(guard, tcp_service) diff --git a/tests/integration/examples/example_tests/http_mitm_proxy.rs b/tests/integration/examples/example_tests/http_mitm_proxy.rs index c3a18c8f0..a72eba6cd 100644 --- a/tests/integration/examples/example_tests/http_mitm_proxy.rs +++ b/tests/integration/examples/example_tests/http_mitm_proxy.rs @@ -22,7 +22,7 @@ async fn test_http_mitm_proxy() { tokio::spawn(async { HttpServer::auto(Executor::default()) .listen( - "127.0.0.1:63003", + "127.0.0.1:63103", service_fn(|req: Request| async move { Ok(Json(json!({ "method": req.method().as_str(), @@ -74,7 +74,7 @@ async fn test_http_mitm_proxy() { // test http request proxy flow let result = runner - .get("http://127.0.0.1:63003/foo/bar") + .get("http://127.0.0.1:61003/foo/bar") .send(ctx.clone()) .await .unwrap() diff --git a/tests/integration/examples/example_tests/https_connect_proxy.rs b/tests/integration/examples/example_tests/https_connect_proxy.rs index 03b1401ef..e044bb137 100644 --- a/tests/integration/examples/example_tests/https_connect_proxy.rs +++ b/tests/integration/examples/example_tests/https_connect_proxy.rs @@ -21,7 +21,7 @@ async fn test_https_connect_proxy() { tokio::spawn(async { HttpServer::auto(Executor::default()) .listen( - "127.0.0.1:63002", + "127.0.0.1:63102", ( #[cfg(feature = "compression")] CompressionLayer::new(), @@ -46,7 +46,7 @@ async fn test_https_connect_proxy() { // test regular proxy flow let result = runner - .get("http://127.0.0.1:63002/foo/bar") + .get("http://127.0.0.1:63102/foo/bar") .typed_header(Accept::json()) .send(ctx.clone()) .await diff --git a/tests/integration/examples/example_tests/mtls_tunnel_and_service.rs b/tests/integration/examples/example_tests/mtls_tunnel_and_service.rs index f99dc50bf..9140c4dd3 100644 --- a/tests/integration/examples/example_tests/mtls_tunnel_and_service.rs +++ b/tests/integration/examples/example_tests/mtls_tunnel_and_service.rs @@ -11,7 +11,7 @@ async fn test_mtls_tunnel_and_service() { let runner = utils::ExampleRunner::interactive("mtls_tunnel_and_service", Some("rustls")); let res_str = runner - .get("http://127.0.0.1:62014/hello") + .get("http://127.0.0.1:62114/hello") .send(Context::default()) .await .unwrap() diff --git a/tests/integration/examples/example_tests/tls_termination.rs b/tests/integration/examples/example_tests/tls_termination.rs index 945b95741..36c510b7e 100644 --- a/tests/integration/examples/example_tests/tls_termination.rs +++ b/tests/integration/examples/example_tests/tls_termination.rs @@ -12,7 +12,7 @@ async fn test_tls_termination() { // but mostly because otherwise we need to fake the Forwarding stuff (HaProxy) as well. let reply = runner - .get("https://127.0.0.1:63800") + .get("https://127.0.0.1:63850") .send(Context::default()) .await .unwrap()