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