From deff2334ac8e3c51aa0bdf43f5d8ebd079cdf765 Mon Sep 17 00:00:00 2001 From: dithmer <35928308+dithmer@users.noreply.github.com> Date: Sun, 22 Sep 2024 11:55:41 +0200 Subject: [PATCH] Fix the wrong default hooks for PreDown and PostDown on Peer Preparing by using the correct properties of the iface (#293) Co-authored-by: Tim Dithmer --- internal/app/wireguard/wireguard_peers.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/app/wireguard/wireguard_peers.go b/internal/app/wireguard/wireguard_peers.go index 8feb60fc..b4764d2f 100644 --- a/internal/app/wireguard/wireguard_peers.go +++ b/internal/app/wireguard/wireguard_peers.go @@ -128,8 +128,8 @@ func (m Manager) PreparePeer(ctx context.Context, id domain.InterfaceIdentifier) RoutingTable: domain.NewStringConfigOption(iface.PeerDefRoutingTable, true), PreUp: domain.NewStringConfigOption(iface.PeerDefPreUp, true), PostUp: domain.NewStringConfigOption(iface.PeerDefPostUp, true), - PreDown: domain.NewStringConfigOption(iface.PeerDefPreUp, true), - PostDown: domain.NewStringConfigOption(iface.PeerDefPostUp, true), + PreDown: domain.NewStringConfigOption(iface.PeerDefPreDown, true), + PostDown: domain.NewStringConfigOption(iface.PeerDefPostDown, true), }, }