no keepalive from server to client
This commit is contained in:
parent
13a8f58ab9
commit
5f623dcd9d
@ -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{
|
||||||
|
Loading…
Reference in New Issue
Block a user