[PATCH] wg-quick linux: Add strip-and-eval cmd to extract keys from PostUp

Jason A. Donenfeld Jason at zx2c4.com
Fri Oct 9 14:20:37 CEST 2020


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)


More information about the WireGuard mailing list