We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 902c003 commit c94ee6eCopy full SHA for c94ee6e
1 file changed
utils/localstack_extensions/utils/docker.py
@@ -133,13 +133,12 @@ def update_gateway_routes(self, router: http.Router[http.RouteHandler]):
133
# Determine if HTTP proxy should be set up. Skip it when all container ports are
134
# TCP-only and no host restriction is set, since a catch-all HTTP proxy would
135
# intercept all requests and break other services.
136
- tcp_only = (
137
- self.tcp_ports
138
- and not self.host
139
- and set(self.container_ports) == set(self.tcp_ports)
+ uses_http = (
+ self.host
+ and set(self.container_ports) - set(self.tcp_ports or [])
140
)
141
142
- if not tcp_only:
+ if uses_http:
143
# add resource for HTTP/1.1 requests
144
resource = RuleAdapter(ProxyResource(self.container_host, self.main_port))
145
if self.host:
0 commit comments