From c074b6bd66fe6001b1bb89a06758b09594c32a8a Mon Sep 17 00:00:00 2001 From: silver_volt4 Date: Fri, 4 Apr 2025 22:44:14 +0200 Subject: [PATCH] Update config-local.yaml to use connection_strategy: lazy (#9) This allows pretendo-docker clients to connect to URLs that do not exist as upstream servers. Previously, this would cause an error because mitmproxy would attempt to connect to the nonexistent upstream server before processing the redirection script that changes the request's destination to the local server. --- config-local.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config-local.yaml b/config-local.yaml index 5ea8d5b..1b15eb0 100644 --- a/config-local.yaml +++ b/config-local.yaml @@ -22,3 +22,6 @@ ssl_insecure: true # Allow the console to use older TLS versions tls_version_client_min: UNBOUNDED tls_version_server_min: UNBOUNDED + +# Allow connections to URLs that do not exist upstream (see https://github.com/MatthewL246/pretendo-docker/issues/243) +connection_strategy: lazy