From: "Jason A. Donenfeld" <Jason@zx2c4.com>
To: "Vojtěch Káně" <vojtech.kane@gmail.com>
Cc: WireGuard mailing list <wireguard@lists.zx2c4.com>
Subject: Re: Strange behavior when a peer has the same key as the interface
Date: Sun, 5 Sep 2021 22:54:11 +0200 [thread overview]
Message-ID: <CAHmME9q=XVvkj8dPGKdzEFSXg2thisDMkUWqXHGtAfmW2==ZRA@mail.gmail.com> (raw)
In-Reply-To: <57e7c370-026a-1456-496f-cf069d392772@gmail.com>
On Sun, Sep 5, 2021 at 10:27 PM Vojtěch Káně <vojtech.kane@gmail.com> wrote:
>
> > This is by design across all implementations, so that multiple peers can share the same stanzas after the [Interface] section.
> Does that mean it's unfixable in the meaning you cannot detect it and
> return appropriate error?
>
>
> While being clearly my mistake, it took me multiple hours to understand
> the problem instead of simply getting `cannot set peer foo as it already
> is a public key of interface bar`.
>
It sounds like we really need to document that in more obvious places,
like wg(8), as that kind of confusion indeed must have been really
frustrating.
Jason
prev parent reply other threads:[~2021-09-05 20:56 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-03 7:24 Vojtěch Káně
2021-09-05 13:24 ` Jason A. Donenfeld
2021-09-05 20:27 ` Vojtěch Káně
2021-09-05 20:54 ` Jason A. Donenfeld [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAHmME9q=XVvkj8dPGKdzEFSXg2thisDMkUWqXHGtAfmW2==ZRA@mail.gmail.com' \
--to=jason@zx2c4.com \
--cc=vojtech.kane@gmail.com \
--cc=wireguard@lists.zx2c4.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).