aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
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/main.cpp
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/main.cpp')
-rw-r--r--src/main.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 724b479..b592aa9 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -190,6 +190,10 @@ int main(int argc, char ** argv) {
output_path = std::filesystem::absolute(output_path);
}
+ for(std::string const & warning : cfg.warnings) {
+ err("warning: %s", warning.c_str());
+ }
+
write_systemd_file(cfg.netdev, output_path, false);
write_systemd_file(cfg.network, output_path, false);
write_systemd_file(cfg.private_keyfile, output_path, true);