From 5f623dcd9d0115fde9a9bf6806d6bc960977150e Mon Sep 17 00:00:00 2001 From: Callan Bryant Date: Sat, 7 Mar 2020 10:07:03 +0000 Subject: [PATCH] no keepalive from server to client --- configtypes.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/configtypes.go b/configtypes.go index f78173a..211d51c 100644 --- a/configtypes.go +++ b/configtypes.go @@ -178,8 +178,6 @@ func (conf DsnetConfig) MustAllocateIP() net.IP { func (conf DsnetConfig) GetWgPeerConfigs() []wgtypes.PeerConfig { wgPeers := make([]wgtypes.PeerConfig, 0, len(conf.Peers)) - interval := KEEPALIVE - for _, peer := range conf.Peers { wgPeers = append(wgPeers, wgtypes.PeerConfig{ PublicKey: peer.PublicKey.Key, @@ -187,7 +185,6 @@ func (conf DsnetConfig) GetWgPeerConfigs() []wgtypes.PeerConfig { UpdateOnly: false, PresharedKey: &peer.PresharedKey.Key, Endpoint: nil, - PersistentKeepaliveInterval: &interval, ReplaceAllowedIPs: true, AllowedIPs: []net.IPNet{ net.IPNet{