diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2021-02-22 02:01:50 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2021-02-23 20:00:57 +0100 |
commit | a4f8e83d5d9f477554971e90e9ab85922f506ea9 (patch) | |
tree | 5249ac2dbdc8cbb6a7d2d40814b07d7d1f38ad4d /main_windows.go | |
parent | c69481f1b3b4b37b9c16f997a5d8d91367d9bfee (diff) |
conn: make binds replacable
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'main_windows.go')
-rw-r--r-- | main_windows.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/main_windows.go b/main_windows.go index 128a0cd..5a7b136 100644 --- a/main_windows.go +++ b/main_windows.go @@ -11,6 +11,7 @@ import ( "os/signal" "syscall" + "golang.zx2c4.com/wireguard/conn" "golang.zx2c4.com/wireguard/device" "golang.zx2c4.com/wireguard/ipc" @@ -47,7 +48,7 @@ func main() { os.Exit(ExitSetupFailed) } - device := device.NewDevice(tun, logger) + device := device.NewDevice(tun, conn.NewDefaultBind(), logger) err = device.Up() if err != nil { logger.Errorf("Failed to bring up device: %v", err) |