Skip to content

Commit

Permalink
[change] Default persistent_keepalive to 60 for WireGuard peers
Browse files Browse the repository at this point in the history
  • Loading branch information
pandafy committed May 5, 2021
1 parent b479003 commit f50cd3b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion netjsonconfig/backends/openwrt/openwrt.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def wireguard_auto_client(cls, **kwargs):
'endpoint_port': data['server']['endpoint_port'],
# Default values for Wireguard Peers
'preshared_key': '',
'persistent_keepalive': 0,
'persistent_keepalive': 60,
'route_allowed_ips': True,
}
],
Expand Down
2 changes: 1 addition & 1 deletion tests/openwrt/test_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ def _get_wireguard_empty_configuration(self):
'endpoint_host': '',
'endpoint_port': 51820,
'interface': '',
'persistent_keepalive': 0,
'persistent_keepalive': 60,
'preshared_key': '',
'public_key': '',
'route_allowed_ips': True,
Expand Down

0 comments on commit f50cd3b

Please sign in to comment.