diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-05-30 05:14:53 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-05-31 05:35:34 +0200 |
commit | 019d1757e81f91c991679e83779a0bb09c037425 (patch) | |
tree | 0553a5fa5343002a07667a7688d4673350c55d92 /src/tools | |
parent | config: do not error out when getting if no peers (diff) | |
download | wireguard-monolithic-historical-019d1757e81f91c991679e83779a0bb09c037425.tar.xz wireguard-monolithic-historical-019d1757e81f91c991679e83779a0bb09c037425.zip |
tools: allow creating device with no peers
Diffstat (limited to 'src/tools')
-rw-r--r-- | src/tools/config.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/tools/config.c b/src/tools/config.c index f57fa82..5bb985f 100644 --- a/src/tools/config.c +++ b/src/tools/config.c @@ -397,10 +397,6 @@ bool config_read_finish(struct config_ctx *ctx) { size_t i; struct wgpeer *peer; - if (ctx->buf.dev->flags & WGDEVICE_REPLACE_PEERS && !ctx->buf.dev->num_peers) { - fprintf(stderr, "No peers configured\n"); - goto err; - } if (ctx->buf.dev->flags & WGDEVICE_REPLACE_PEERS && !key_is_valid(ctx->buf.dev->private_key)) { fprintf(stderr, "No private key configured\n"); goto err; |