diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-02-05 22:06:25 +0900 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-02-05 22:06:25 +0900 |
commit | c599bf9497e4180231fc7846193d26f3ed9de349 (patch) | |
tree | 62b6aed98531930d8ca6e9ece9f503d21bd26b96 /main_windows.go | |
parent | f7f63765d1ea5e5ce6bc6757d5ad335dcdb4f2a1 (diff) |
Fix up errors and paths
Diffstat (limited to 'main_windows.go')
-rw-r--r-- | main_windows.go | 7 |
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) |