summaryrefslogtreecommitdiffstatshomepage
path: root/src/tools/config.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/config.c')
-rw-r--r--src/tools/config.c4
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;