aboutsummaryrefslogtreecommitdiff
path: root/src/wg2sd.hpp
diff options
context:
space:
mode:
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);