aboutsummaryrefslogtreecommitdiff
path: root/src/wg2sd.hpp
diff options
context:
space:
mode:
authorflu0r1ne <flu0r1ne@flu0r1ne.net>2023-08-17 17:43:48 -0500
committerflu0r1ne <flu0r1ne@flu0r1ne.net>2023-08-17 17:44:22 -0500
commitd6e19ce0a112bd2403ad0cb274808ce3e749b459 (patch)
tree9c0a430436ff81e13754ac167f6f90a911982b98 /src/wg2sd.hpp
parentdd9b0671503c27a6dca04b5d6d95b936cae60549 (diff)
downloadwg2nd-d6e19ce0a112bd2403ad0cb274808ce3e749b459.tar.xz
wg2nd-d6e19ce0a112bd2403ad0cb274808ce3e749b459.zip
Add warnings for PreUp, PostUp, PreDown, PostDown, and SaveConfig configuration, no systemd-networkd eqiv
Diffstat (limited to 'src/wg2sd.hpp')
-rw-r--r--src/wg2sd.hpp6
1 files changed, 6 insertions, 0 deletions
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<uint16_t> 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<SystemdFilespec> symmetric_keyfiles;
+
+ std::vector<std::string> warnings;
};
std::string interface_name_from_filename(std::filesystem::path config_path);