Skip to content
Snippets Groups Projects
Commit c5285831 authored by Benjamin Wenger's avatar Benjamin Wenger
Browse files

updated gateway connection parameters

parent 4cfc6b78
Branches
Tags
1 merge request!58Revert "Modify waiting lock"
...@@ -610,6 +610,8 @@ func (i *Instance) updateConns(def *ndf.NetworkDefinition, isGateway, isNode boo ...@@ -610,6 +610,8 @@ func (i *Instance) updateConns(def *ndf.NetworkDefinition, isGateway, isNode boo
} }
gwParams := connect.GetDefaultHostParams() gwParams := connect.GetDefaultHostParams()
gwParams.AuthEnabled = false gwParams.AuthEnabled = false
gwParams.MaxRetries = 3
gwParams.EnableCoolOff = true
_, err := i.comm.AddHost(gwid, addr, []byte(gateway.TlsCertificate), gwParams) _, err := i.comm.AddHost(gwid, addr, []byte(gateway.TlsCertificate), gwParams)
if err != nil { if err != nil {
return errors.WithMessagef(err, "Could not add gateway host %s", gwid) return errors.WithMessagef(err, "Could not add gateway host %s", gwid)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment