use pipe instead

This commit is contained in:
Callan Bryant 2020-12-05 08:18:43 +00:00
parent 8cee8d8672
commit 8e0755466e
No known key found for this signature in database
GPG Key ID: C31FA9DF3ACBFFAA

View File

@ -49,8 +49,8 @@ For the above options, one should transfer the password separately.
A local QR code generator, such as the popular
[qrencode](https://fukuchi.org/works/qrencode/) may also be used to generate a
QR code of the configuration. For instance, from the example above:
`qrencode -t ansiutf8 < dsnet-banana.conf`
QR code of the configuration. For instance: `dsnet add | qrencode -t ansiutf8`.
This works because the dsnet prompts are on STDERR and not passed to qrencode.
The peer private key is generated on the server, which is technically not as
secure as generating it on the client peer and then providing the server the