Skip to content
Snippets Groups Projects
Commit 6891c8a4 authored by Jonah Husson's avatar Jonah Husson
Browse files

set maxretries on nb host

parent 83977917
No related branches found
No related tags found
No related merge requests found
...@@ -230,6 +230,7 @@ func Login(storageDir string, password []byte, parameters params.Network) (*Clie ...@@ -230,6 +230,7 @@ func Login(storageDir string, password []byte, parameters params.Network) (*Clie
if def.Notification.Address != "" { if def.Notification.Address != "" {
hp := connect.GetDefaultHostParams() hp := connect.GetDefaultHostParams()
hp.AuthEnabled = false hp.AuthEnabled = false
hp.MaxRetries = 5
_, err = c.comms.AddHost(&id.NotificationBot, def.Notification.Address, []byte(def.Notification.TlsCertificate), hp) _, err = c.comms.AddHost(&id.NotificationBot, def.Notification.Address, []byte(def.Notification.TlsCertificate), hp)
if err != nil { if err != nil {
jww.WARN.Printf("Failed adding host for notifications: %+v", err) jww.WARN.Printf("Failed adding host for notifications: %+v", err)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment