aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.go
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/main.go7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/main.go b/src/main.go
index b89af17..50140e3 100644
--- a/src/main.go
+++ b/src/main.go
@@ -18,9 +18,7 @@ func main() {
}
deviceName := os.Args[1]
- // Open TUN device
-
- // TODO: Fix capabilities
+ // open TUN device
tun, err := CreateTUN(deviceName)
log.Println(tun, err)
@@ -29,8 +27,9 @@ func main() {
}
device := NewDevice(tun, LogLevelDebug)
+ device.log.Info.Println("Starting device")
- // Start configuration lister
+ // start configuration lister
socketPath := fmt.Sprintf("/var/run/wireguard/%s.sock", deviceName)
l, err := net.Listen("unix", socketPath)