containers without port mapped will no longer be served

This commit is contained in:
yusing
2024-10-01 17:18:17 +08:00
parent 44cfd65f6c
commit c3b779a810
11 changed files with 50 additions and 48 deletions

View File

@@ -133,7 +133,9 @@ func (r *HTTPRoute) Start() E.NestedError {
}
}
if r.entry.IsDocker() && !r.entry.ContainerRunning {
if r.entry.URL.Port() == "0" ||
r.entry.IsDocker() && !r.entry.ContainerRunning {
// TODO: if it use idlewatcher, set mux to dummy mux
return nil
}