Skip to content

Commit

Permalink
Fix the wrong default hooks for PreDown and PostDown on Peer Preparin…
Browse files Browse the repository at this point in the history
…g by using the correct properties of the iface (#293)

Co-authored-by: Tim Dithmer <[email protected]>
  • Loading branch information
dithmer and Tim Dithmer authored Sep 22, 2024
1 parent 4f1044a commit deff233
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/app/wireguard/wireguard_peers.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),
},
}

Expand Down

0 comments on commit deff233

Please sign in to comment.