Skip to content
Snippets Groups Projects
Commit b7692cd7 authored by Jake Taylor's avatar Jake Taylor
Browse files

added Keepalive opts

parent 6e5c4351
Branches
Tags
1 merge request!23Release
......@@ -13,9 +13,6 @@ import (
"github.com/spf13/cobra"
jww "github.com/spf13/jwalterweatherman"
"github.com/spf13/viper"
"math"
"time"
// "gitlab.com/elixxir/crypto/contact"
// "gitlab.com/elixxir/client/interfaces/message"
// "gitlab.com/elixxir/client/switchboard"
......@@ -62,8 +59,6 @@ var getNDFCmd = &cobra.Command{
}
params := connect.GetDefaultHostParams()
// Client will not send KeepAlive packets
params.KaClientOpts.Time = time.Duration(math.MaxInt64)
params.AuthEnabled = false
comms, _ := client.NewClientComms(nil, nil, nil, nil)
// Gateway lookup
......
......@@ -13,6 +13,8 @@ import (
"gitlab.com/xx_network/comms/connect"
"gitlab.com/xx_network/primitives/id"
"gitlab.com/xx_network/primitives/ndf"
"math"
"time"
)
type Permissioning struct {
......@@ -31,7 +33,8 @@ func Init(comms *client.Comms, def *ndf.NetworkDefinition) (*Permissioning, erro
//add the permissioning host to comms
hParam := connect.GetDefaultHostParams()
hParam.AuthEnabled = false
// Client will not send KeepAlive packets
hParam.KaClientOpts.Time = time.Duration(math.MaxInt64)
perm.host, err = comms.AddHost(&id.Permissioning, def.Registration.Address,
[]byte(def.Registration.TlsCertificate), hParam)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment