Skip to content

Commit

Permalink
worker: use replace instead of add in route handler
Browse files Browse the repository at this point in the history
  • Loading branch information
moepman committed Sep 11, 2021
1 parent 42e8756 commit e4741c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wgskex/worker/netlink.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def wireguard_handler(client: WireGuardClient) -> Dict:
def route_handler(client: WireGuardClient) -> Dict:
with IPRoute() as ip:
return ip.route(
"del" if client.remove else "add",
"del" if client.remove else "replace",
dst=client.lladdr,
oif=ip.link_lookup(ifname=client.wg_interface)[0],
)
Expand Down

0 comments on commit e4741c9

Please sign in to comment.