Replace Nodes with Peers

This commit is contained in:
Asim Aslam
2019-09-19 16:32:15 +01:00
parent ee74e26582
commit 7e05d2c440
2 changed files with 7 additions and 8 deletions

View File

@@ -73,7 +73,7 @@ func newNetwork(opts ...Option) Network {
// init tunnel address to the network bind address
options.Tunnel.Init(
tunnel.Address(options.Address),
tunnel.Nodes(options.Nodes...),
tunnel.Nodes(options.Peers...),
)
// init router Id to the network id
@@ -169,7 +169,7 @@ func (n *network) resolveNodes() ([]string, error) {
}
// append seed nodes if we have them
for _, node := range n.options.Nodes {
for _, node := range n.options.Peers {
if _, ok := nodeMap[node]; !ok {
nodes = append(nodes, node)
}