feat: support newline and comma-whitespace external host lists for auto-discovery (#468)
This commit is contained in:
@@ -247,7 +247,7 @@ func (w *dockerSwarmWatcherImpl) parseServiceData(service *swarm.Service, networ
|
||||
Warnf("ignoring service with duplicate %s", DockerRouterLabelHost)
|
||||
return
|
||||
}
|
||||
data.hosts = strings.Split(value, ",")
|
||||
data.hosts = SplitExternalHosts(value)
|
||||
}
|
||||
if key == DockerRouterLabelPort {
|
||||
if data.port != 0 {
|
||||
|
||||
Reference in New Issue
Block a user