Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit eecffe7

Browse files
committed
Fix dynamic default gateway listen after hostname migration
1 parent ec535ea commit eecffe7

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

‎localstack/config.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -593,10 +593,6 @@ def append(self, value: HostAndPort):
593593
super().append(value)
594594

595595

596-
def default_gateway_listen() -> List[HostAndPort]:
597-
return [HostAndPort(host=default_ip, port=constants.DEFAULT_PORT_EDGE)]
598-
599-
600596
def populate_legacy_edge_configuration(
601597
environment: Mapping[str, str]
602598
) -> Tuple[HostAndPort, UniqueHostAndPortList, int]:
@@ -634,7 +630,7 @@ def legacy_fallback(envar_name: str, default: T) -> T:
634630
)
635631
else:
636632
# use default if gateway listen is not defined
637-
gateway_listen = default_gateway_listen()
633+
gateway_listen = [HostAndPort(host=default_ip, port=localstack_host_port)]
638634

639635
# the actual value of the LOCALSTACK_HOST port now depends on what gateway listen actually listens to.
640636
if localstack_host_raw is None:

0 commit comments

Comments
 (0)