File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
utils/localstack_extensions/utils Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -138,13 +138,12 @@ def update_gateway_routes(self, router: http.Router[http.RouteHandler]):
138138 # Determine if HTTP proxy should be set up. Skip it when all container ports are
139139 # TCP-only and no host restriction is set, since a catch-all HTTP proxy would
140140 # 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 )
141+ uses_http = (
142+ self .host
143+ and set (self .container_ports ) - set (self .tcp_ports or [])
145144 )
146145
147- if not tcp_only :
146+ if uses_http :
148147 # add resource for HTTP/1.1 requests
149148 resource = RuleAdapter (ProxyResource (self .container_host , self .main_port ))
150149 if self .host :
You can’t perform that action at this time.
0 commit comments