Skip to content

Commit 729242a

Browse files
committed
man: set private key in PreUp rather than PostUp
This is probably more sensible, since there's no point in letting traffic flow before the interface is configured. Signed-off-by: Jason A. Donenfeld <[email protected]>
1 parent e6888dd commit 729242a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/man/wg-quick.8

+1-1
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ sockets, which bypass Netfilter.) When IPv6 is in use, additional similar lines
168168
Or, perhaps it is desirable to store private keys in encrypted form, such as through use of
169169
.BR pass (1):
170170

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

174174
For use on a server, the following is a more complicated example involving multiple peers:

0 commit comments

Comments
 (0)