From d6e19ce0a112bd2403ad0cb274808ce3e749b459 Mon Sep 17 00:00:00 2001 From: flu0r1ne Date: Thu, 17 Aug 2023 17:43:48 -0500 Subject: Add warnings for PreUp, PostUp, PreDown, PostDown, and SaveConfig configuration, no systemd-networkd eqiv --- src/wg2sd.hpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/wg2sd.hpp') diff --git a/src/wg2sd.hpp b/src/wg2sd.hpp index 00028b4..ea6f7fe 100644 --- a/src/wg2sd.hpp +++ b/src/wg2sd.hpp @@ -33,6 +33,10 @@ namespace wg2sd { // ListenPort=... // The port number on which the interface will listen std::optional listen_port; + // PreUp, PostUp, PreDown PostDown + std::string preup, postup, predown, postdown; + // SaveConfig + std::string save_config; Interface() : should_create_routes { false } @@ -121,6 +125,8 @@ namespace wg2sd { SystemdFilespec network; SystemdFilespec private_keyfile; std::vector symmetric_keyfiles; + + std::vector warnings; }; std::string interface_name_from_filename(std::filesystem::path config_path); -- cgit v1.2.3