wireguard-go
wireguard-go copied to clipboard
device: return generic error from Ipc{Get,Set}Operation.
This makes uapi.go's public API conform to Go style in terms of error types.
Signed-off-by: David Anderson [email protected]
cc @crawshaw replaces #7 with more complete coverage. I said in that PR I'd send a complementary change for just IpcGetOperation, but it ended up being easier to just fix both at once. I suggest merging this one and closing #7 ?
LGTM
Merged upstream. I can't close your PRs.
This might have implications for wireguard-android, wireguard-windows, and wireguard-apple:
https://github.com/WireGuard/wireguard-android/blob/master/tunnel/tools/libwg-go/api-android.go#L86-L91
https://github.com/WireGuard/wireguard-windows/blob/master/tunnel/service.go#L199-L204
https://github.com/WireGuard/wireguard-apple/blob/master/wireguard-go-bridge/api-ios.go#L107-L111