summaryrefslogtreecommitdiffhomepage
path: root/main_windows.go
diff options
context:
space:
mode:
Diffstat (limited to 'main_windows.go')
-rw-r--r--main_windows.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/main_windows.go b/main_windows.go
index f6a0b88..d3cd82b 100644
--- a/main_windows.go
+++ b/main_windows.go
@@ -7,9 +7,10 @@ package main
import (
"fmt"
- "git.zx2c4.com/wireguard-go/tun"
"os"
"os/signal"
+
+ "git.zx2c4.com/wireguard-go/tun"
)
const (
@@ -18,8 +19,7 @@ const (
)
func main() {
-
- if len(os.Args) != 1 {
+ if len(os.Args) != 2 {
os.Exit(ExitSetupFailed)
}
//configFile := os.Args[1]
@@ -44,6 +44,7 @@ func main() {
}
device := NewDevice(tun, logger)
+ device.Up()
logger.Info.Println("Device started")
uapi, err := UAPIListen(interfaceName)