Development discussion of WireGuard
 help / color / mirror / Atom feed
From: "Jason A. Donenfeld" <Jason@zx2c4.com>
To: Robin Schneider <ypid@riseup.net>
Cc: WireGuard mailing list <wireguard@lists.zx2c4.com>
Subject: Re: [PATCH] wg-quick linux: Add strip-and-eval cmd to extract keys from PostUp
Date: Fri, 9 Oct 2020 14:20:37 +0200	[thread overview]
Message-ID: <CAHmME9oe5e84gpsGjGYkWHZoOLYKX1xUZBNzM7g0R6cEHg5JUg@mail.gmail.com> (raw)
In-Reply-To: <be4e9109-399b-5520-e6fd-e7163350aaf0@riseup.net>

This seems like a weird inconsistent hack. Strip should return
something that is acted on by something else, and not also do things.

But I have another suggestion on how to achieve what you want:

wg syncconf wg0 <(printf '[Interface]\nPrivateKey=%s\n' "$(wg show wg0
private-key)"; wg-quick strip wg0)

  reply	other threads:[~2020-10-09 12:21 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-04 21:20 Robin Schneider
2020-10-09 12:20 ` Jason A. Donenfeld [this message]
2020-10-10 15:57   ` Robin Schneider
2020-10-12 15:01     ` Jason A. Donenfeld
2020-10-12 19:54       ` Robin Schneider
2020-10-12 22:31         ` Jason A. Donenfeld

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=CAHmME9oe5e84gpsGjGYkWHZoOLYKX1xUZBNzM7g0R6cEHg5JUg@mail.gmail.com \
    --to=jason@zx2c4.com \
    --cc=wireguard@lists.zx2c4.com \
    --cc=ypid@riseup.net \
    /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).