Browse Source

update proxy status

Abhishek Kondur 2 years ago
parent
commit
7ba6ce93d9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      models/node.go

+ 1 - 1
models/node.go

@@ -511,7 +511,7 @@ func (ln *LegacyNode) ConvertToNewNode(host *Host) (*Host, *Node) {
 	host.Nodes = append(host.Nodes, nodeID.String())
 	host.Nodes = append(host.Nodes, nodeID.String())
 	host.Interfaces = ln.Interfaces
 	host.Interfaces = ln.Interfaces
 	host.EndpointIP = net.ParseIP(ln.Endpoint)
 	host.EndpointIP = net.ParseIP(ln.Endpoint)
-	// host.ProxyEnabled = ln.Proxy // this will always be false..
+	host.ProxyEnabled = ln.Proxy
 	node.ID = nodeID
 	node.ID = nodeID
 	node.Network = ln.Network
 	node.Network = ln.Network
 	if _, cidr, err := net.ParseCIDR(ln.NetworkSettings.AddressRange); err == nil {
 	if _, cidr, err := net.ParseCIDR(ln.NetworkSettings.AddressRange); err == nil {