wg: Allow to set persistent-keepalive regardless of peer status
commit254b6c0adc3b4798ea6a7b8bb6e047f552c83c26
authorAaron LI <aly@aaronly.me>
Tue, 9 Jan 2024 05:32:36 +0000 (9 13:32 +0800)
committerAaron LI <aly@aaronly.me>
Thu, 8 Feb 2024 06:44:47 +0000 (8 14:44 +0800)
tree86f2f6ad791ea7ef3adf81b4ac5c6bf16f966a23
parente44138a780183f2ea032b3371adb0b33a3b91e2a
wg: Allow to set persistent-keepalive regardless of peer status

It was unable to set persistent-keepalive when the peer was disabled,
which was inconvenient and unnecessary.  For example, one can configure
the interface and peers before finally making the interface UP.
sys/net/wg/if_wg.c