execute interface hooks if interface settings have changed (#224)

This commit is contained in:
Christoph Haas
2024-04-02 20:51:09 +02:00
parent c17c182926
commit 95e10dcc24
2 changed files with 21 additions and 4 deletions

View File

@@ -28,6 +28,7 @@ func (r *WgQuickRepo) ExecuteInterfaceHook(id domain.InterfaceIdentifier, hookCm
return nil
}
logrus.Tracef("interface %s: executing hook %s", id, hookCmd)
err := r.exec(hookCmd, id)
if err != nil {
return fmt.Errorf("failed to exec hook: %w", err)