diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2021-08-09 22:44:15 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2021-08-09 23:39:31 +0200 |
commit | 36d14fc7806c0bbdfebf0b169dd1361b9e0bed47 (patch) | |
tree | 2e04946d9f20082efbf158822e1aae38c75da6ea /embeddable-dll-service | |
parent | driver: split 64bit arguments into two for 32bit machines (diff) | |
download | wireguard-windows-36d14fc7806c0bbdfebf0b169dd1361b9e0bed47.tar.xz wireguard-windows-36d14fc7806c0bbdfebf0b169dd1361b9e0bed47.zip |
embeddable-dll-service: use wgnt always
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'embeddable-dll-service')
-rw-r--r-- | embeddable-dll-service/README.md | 2 | ||||
-rw-r--r-- | embeddable-dll-service/csharp/README.md | 8 | ||||
-rw-r--r-- | embeddable-dll-service/main.go | 1 |
3 files changed, 3 insertions, 8 deletions
diff --git a/embeddable-dll-service/README.md b/embeddable-dll-service/README.md index aeb80eba..9e05ab56 100644 --- a/embeddable-dll-service/README.md +++ b/embeddable-dll-service/README.md @@ -1,6 +1,6 @@ ## Embeddable WireGuard Tunnel Library -This allows embedding WireGuard as a service inside of another application. Build `tunnel.dll` by running `./build.bat` in this folder. The first time you run it, it will invoke `..\build.bat` simply for downloading dependencies. After, you should have `amd64/tunnel.dll`, `x86/tunnel.dll`, and `arm64/tunnel.dll`. In addition, `tunnel.dll` requires `wintun.dll`, which can be downloaded from [wintun.net](https://www.wintun.net), and `wireguard.dll`, which can be downloaded from [the wireguard-nt download server](https://download.wireguard.com/wireguard-nt/). +This allows embedding WireGuard as a service inside of another application. Build `tunnel.dll` by running `./build.bat` in this folder. The first time you run it, it will invoke `..\build.bat` simply for downloading dependencies. After, you should have `amd64/tunnel.dll`, `x86/tunnel.dll`, and `arm64/tunnel.dll`. In addition, `tunnel.dll` requires `wireguard.dll`, which can be downloaded from [the wireguard-nt download server](https://download.wireguard.com/wireguard-nt/). The basic setup to use `tunnel.dll` is: diff --git a/embeddable-dll-service/csharp/README.md b/embeddable-dll-service/csharp/README.md index 39542f3d..24b36563 100644 --- a/embeddable-dll-service/csharp/README.md +++ b/embeddable-dll-service/csharp/README.md @@ -4,10 +4,4 @@ This is a simple client for demo.wireguard.com, which brings up WireGuard tunnel ## Building -The code in this repository can be built in Visual Studio 2019 by opening the .sln and pressing build. However, it requires [`tunnel.dll` and its dependencies](../README.md) to be present in the run directory. That can be built by: - -```batch -> git clone https://git.zx2c4.com/wireguard-windows -> cd wireguard-windows\embeddable-dll-service -> .\build.bat -``` +The code in this repository can be built in Visual Studio 2019 by opening the .sln and pressing build. However, it requires [`tunnel.dll` and `wireguard.dll`](../README.md). diff --git a/embeddable-dll-service/main.go b/embeddable-dll-service/main.go index df63034e..ee2f0ce1 100644 --- a/embeddable-dll-service/main.go +++ b/embeddable-dll-service/main.go @@ -25,6 +25,7 @@ func WireGuardTunnelService(confFile16 *uint16) bool { confFile := windows.UTF16PtrToString(confFile16) conf.PresetRootDirectory(filepath.Dir(confFile)) tunnel.UseFixedGUIDInsteadOfDeterministic = true + tunnel.ForceImplementation = 1 err := tunnel.Run(confFile) if err != nil { log.Printf("Service run error: %v", err) |