no keepalive from server to client

This commit is contained in:
Callan Bryant 2020-03-07 10:07:03 +00:00
parent 13a8f58ab9
commit 5f623dcd9d
No known key found for this signature in database
GPG Key ID: C31FA9DF3ACBFFAA

View File

@ -178,8 +178,6 @@ func (conf DsnetConfig) MustAllocateIP() net.IP {
func (conf DsnetConfig) GetWgPeerConfigs() []wgtypes.PeerConfig { func (conf DsnetConfig) GetWgPeerConfigs() []wgtypes.PeerConfig {
wgPeers := make([]wgtypes.PeerConfig, 0, len(conf.Peers)) wgPeers := make([]wgtypes.PeerConfig, 0, len(conf.Peers))
interval := KEEPALIVE
for _, peer := range conf.Peers { for _, peer := range conf.Peers {
wgPeers = append(wgPeers, wgtypes.PeerConfig{ wgPeers = append(wgPeers, wgtypes.PeerConfig{
PublicKey: peer.PublicKey.Key, PublicKey: peer.PublicKey.Key,
@ -187,7 +185,6 @@ func (conf DsnetConfig) GetWgPeerConfigs() []wgtypes.PeerConfig {
UpdateOnly: false, UpdateOnly: false,
PresharedKey: &peer.PresharedKey.Key, PresharedKey: &peer.PresharedKey.Key,
Endpoint: nil, Endpoint: nil,
PersistentKeepaliveInterval: &interval,
ReplaceAllowedIPs: true, ReplaceAllowedIPs: true,
AllowedIPs: []net.IPNet{ AllowedIPs: []net.IPNet{
net.IPNet{ net.IPNet{