mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-23 00:38:33 +02:00
containers without port mapped will no longer be served
This commit is contained in:
@@ -163,8 +163,8 @@ func (p *DockerProvider) entriesFromContainerLabels(container D.Container) (entr
|
||||
}
|
||||
|
||||
// remove all entries that failed to fill in missing fields
|
||||
entries.RemoveAll(func(re *M.RawEntry) bool {
|
||||
return !re.FillMissingFields()
|
||||
entries.RangeAll(func(_ string, re *M.RawEntry) {
|
||||
re.FillMissingFields()
|
||||
})
|
||||
|
||||
return entries, errors.Build().Subject(container.ContainerName)
|
||||
|
||||
Reference in New Issue
Block a user