Files
Jason A. Donenfeld 0b7d9821f2 wg-quick: use addconf instead of setconf
The example in the man page at some point changed:

-    \fBPostUp = wg set %i private-key <(pass WireGuard/private-keys/%i)\fP
+    \fBPreUp = wg set %i private-key <(pass WireGuard/private-keys/%i)\fP

This is actually wrong because PreUp is followed by set_config(), which
calls `wg setconf`, which in turn deletes the private key from the
interface because it is missing from the configuration. Replacing this
with `wg addconf` is safe to do because the interface is newly created.

Suggested-by: Matthias Dressel <code@deadcode.eu>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2025-06-19 17:08:50 +02:00
..
2020-02-03 18:17:27 +01:00
2025-05-21 00:58:11 +02:00
2020-01-02 19:52:25 +01:00
2020-01-02 19:52:25 +01:00
2023-02-08 13:47:47 -03:00
2025-05-21 01:05:38 +02:00