浏览代码

Merge pull request #17245 from dhiltgen/discovery_tls

Wire up libnetwork with TLS discovery options
Phil Estes 9 年之前
父节点
当前提交
94a16c81f4
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      daemon/daemon_unix.go

+ 3 - 0
daemon/daemon_unix.go

@@ -341,6 +341,9 @@ func (daemon *Daemon) networkOptions(dconfig *Config) ([]nwconfig.Option, error)
 		options = append(options, nwconfig.OptionKVProvider(kv[0]))
 		options = append(options, nwconfig.OptionKVProviderURL(strings.Join(kv[1:], "://")))
 	}
+	if len(dconfig.ClusterOpts) > 0 {
+		options = append(options, nwconfig.OptionKVOpts(dconfig.ClusterOpts))
+	}
 
 	if daemon.discoveryWatcher != nil {
 		options = append(options, nwconfig.OptionDiscoveryWatcher(daemon.discoveryWatcher))