]> git.ipfire.org Git - thirdparty/wireguard-go.git/commit
device: accept any io.Reader in device.IpcSetOperation
authorJosh Bleecher Snyder <josh@tailscale.com>
Mon, 14 Dec 2020 21:30:38 +0000 (13:30 -0800)
committerJason A. Donenfeld <Jason@zx2c4.com>
Tue, 15 Dec 2020 17:08:24 +0000 (18:08 +0100)
commite950ce7bd2ed1b32519f9877803f1b5b510b13c8
tree1e510dfe6494b7c1f3b6ee30815a44451f65a74e
parent77f55458962a763b3b2d7f76973ef9043c183145
device: accept any io.Reader in device.IpcSetOperation

Any io.Reader will do, and there are no performance concerns here.
This is technically backwards incompatible,
but it is very unlikely to break any existing code.
It is compatible with the existing uses in wireguard-{windows,android,apple}
and also will allow us to slightly simplify it if desired.

Signed-off-by: Josh Bleecher Snyder <josh@tailscale.com>
device/uapi.go