Skip to content

Commit

Permalink
Merge pull request #107 from freifunkMUC/disable_keepalive
Browse files Browse the repository at this point in the history
Disable keepalive on Gateway site
  • Loading branch information
awlx authored Sep 18, 2023
2 parents d3885f7 + dbabb55 commit f638874
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions wgkex/worker/netlink.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
from wgkex.common.utils import mac2eui64
from wgkex.common import logger

_PERSISTENT_KEEPALIVE_SECONDS = 15
_PEER_TIMEOUT_HOURS = 3


Expand Down Expand Up @@ -149,7 +148,6 @@ def update_wireguard_peer(client: WireGuardClient) -> Dict:
with pyroute2.WireGuard() as wg:
wg_peer = {
"public_key": client.public_key,
"persistent_keepalive": _PERSISTENT_KEEPALIVE_SECONDS,
"allowed_ips": [client.lladdr],
"remove": client.remove,
}
Expand Down
2 changes: 0 additions & 2 deletions wgkex/worker/netlink_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ def test_update_wireguard_peer_success(self):
"wg-add",
peer={
"public_key": "public_key",
"persistent_keepalive": 15,
"allowed_ips": ["fe80::282:6eff:fe9d:ecd3/128"],
"remove": False,
},
Expand Down Expand Up @@ -148,7 +147,6 @@ def test_link_handler_addition_success(self):
"wg-add",
peer={
"public_key": "public_key",
"persistent_keepalive": 15,
"allowed_ips": ["fe80::282:6eff:fe9d:ecd3/128"],
"remove": False,
},
Expand Down

0 comments on commit f638874

Please sign in to comment.