From 7624cdf7806f7359645cb143002aab4a4a8a7931 Mon Sep 17 00:00:00 2001 From: Juliya Smith Date: Thu, 31 Oct 2024 14:59:03 -0500 Subject: [PATCH] fix: only set if not given --- src/ape/managers/networks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ape/managers/networks.py b/src/ape/managers/networks.py index b30477fc64..60da7f3584 100644 --- a/src/ape/managers/networks.py +++ b/src/ape/managers/networks.py @@ -134,7 +134,7 @@ def fork( raise NetworkError(f"Unable to fork network '{network_name}'.") from err provider_settings = provider_settings or {} - if is_fork_already: + if is_fork_already and "host" not in provider_settings: # Forking a fork- to ensure is using a different Port, # use the "auto-port" feature. provider_settings["host"] = "auto"