blob: 39ad48e3e0b0d04e492cd5766db87d96c6bcee31 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
# Introduction
`libwg` is a tiny wrapper around `wireguard-go`, with the main purpose of providing a simple FFI-friendly interface.
It currently offers support for the following platforms:
- Linux
- macOS
- Android
# Organization
`libwg.go` has shared code that is used on all platforms.
`libwg_default.go` has default implementations for Linux-based systems.
`libwg_android.go` has code specifically for Android.
# Usage
Call `wgTurnOn` to create and activate a tunnel. The prototype is different on different platforms, see the code for details.
Call `wgTurnOff` to destroy the tunnel.
|