From 32afe0e22080c7ce0b346a94327179972281d5c6 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Tue, 30 May 2017 05:14:53 +0200 Subject: [PATCH] wg: allow creating device with no peers Signed-off-by: Jason A. Donenfeld --- src/config.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/config.c b/src/config.c index f57fa82..5bb985f 100644 --- a/src/config.c +++ b/src/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;