mirror of
https://github.com/umputun/reproxy.git
synced 2024-09-11 08:55:25 +03:00
reproxy.port to enable container
This commit is contained in:
parent
2670144e8a
commit
9b9d64894d
@ -126,6 +126,11 @@ func (d *Docker) List() ([]discovery.URLMapper, error) {
|
||||
}
|
||||
}
|
||||
|
||||
// should not set anything, handled on matchedPort level. just use to enable implicitly
|
||||
if _, ok := c.Labels["reproxy.port"]; ok {
|
||||
enabled = true
|
||||
}
|
||||
|
||||
if !enabled {
|
||||
log.Printf("[DEBUG] container %s disabled", c.Name)
|
||||
continue
|
||||
|
Loading…
Reference in New Issue
Block a user