diff options
author | Hristo Venev <hristo@venev.name> | 2020-02-05 00:24:42 +0100 |
---|---|---|
committer | Hristo Venev <hristo@venev.name> | 2020-02-05 01:40:52 +0100 |
commit | ff7ea7b5583ffce18ccb4bb56860a3eb145c688e (patch) | |
tree | 595e01558ac8883e5b634cd614c91b3d2593d3d3 | |
parent | 4551990a94b91a0f2fa9d42d7cf465f54015e7f8 (diff) |
Fix netifd peer config.
-rwxr-xr-x | dist/netifd/wgconfd.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dist/netifd/wgconfd.sh b/dist/netifd/wgconfd.sh index af34525..2f5783f 100755 --- a/dist/netifd/wgconfd.sh +++ b/dist/netifd/wgconfd.sh @@ -106,9 +106,9 @@ proto_wgconfd_setup__source_route() { proto_wgconfd_setup__peer() { local val - config_get val "$1" key + config_get val "$1" public_key [ -z "$val" ] && return - proto_wgconfd_setup__print public_key "$val" + proto_wgconfd_setup__print peer "$val" config_get val "$1" endpoint [ -n "$val" ] && proto_wgconfd_setup__print endpoint "$val" |