feat: support newline and comma-whitespace external host lists for auto-discovery (#468)
This commit is contained in:
+1
-1
@@ -199,7 +199,7 @@ func (w *dockerWatcherImpl) parseContainerData(container *dockertypes.Container)
|
||||
Warnf("ignoring container with duplicate %s label", DockerRouterLabelHost)
|
||||
return
|
||||
}
|
||||
data.hosts = strings.Split(value, ",")
|
||||
data.hosts = SplitExternalHosts(value)
|
||||
}
|
||||
|
||||
if key == DockerRouterLabelPort {
|
||||
|
||||
Reference in New Issue
Block a user