network: make reading PrivateKeyFile= failure always fatal
This also refactor wireguard_read_key_file().
This commit is contained in:
@@ -4,7 +4,6 @@ Kind=wireguard
|
||||
|
||||
[WireGuard]
|
||||
PrivateKey=EEGlnEPYJV//kbvvIqxKkQwOiS+UENyPncC4bF46ong=
|
||||
PrivateKeyFile=/run/systemd/network/not-exist
|
||||
ListenPort=51820
|
||||
FwMark=1234
|
||||
|
||||
|
||||
Reference in New Issue
Block a user