summaryrefslogtreecommitdiffhomepage
path: root/main.go
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2021-02-22 02:01:50 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2021-02-23 20:00:57 +0100
commita4f8e83d5d9f477554971e90e9ab85922f506ea9 (patch)
tree5249ac2dbdc8cbb6a7d2d40814b07d7d1f38ad4d /main.go
parentc69481f1b3b4b37b9c16f997a5d8d91367d9bfee (diff)
conn: make binds replacable
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'main.go')
-rw-r--r--main.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/main.go b/main.go
index eb5446f..a599de1 100644
--- a/main.go
+++ b/main.go
@@ -15,6 +15,7 @@ import (
"strconv"
"syscall"
+ "golang.zx2c4.com/wireguard/conn"
"golang.zx2c4.com/wireguard/device"
"golang.zx2c4.com/wireguard/ipc"
"golang.zx2c4.com/wireguard/tun"
@@ -219,7 +220,7 @@ func main() {
return
}
- device := device.NewDevice(tun, logger)
+ device := device.NewDevice(tun, conn.NewDefaultBind(), logger)
logger.Verbosef("Device started")