aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/main.go
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-03-03 03:25:43 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2019-03-03 03:26:02 +0100
commit4d6b631be3b7f6a1716c9574dfaa888d7185cf76 (patch)
tree1ed09d751f2e2f0b562cbfa54ab80a1155174a28 /main.go
parentcallbacks: use cb as receiver for unregister (diff)
downloadwireguard-windows-4d6b631be3b7f6a1716c9574dfaa888d7185cf76.tar.xz
wireguard-windows-4d6b631be3b7f6a1716c9574dfaa888d7185cf76.zip
tunnel: simplify shutdown
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to '')
-rw-r--r--main.go12
1 files changed, 1 insertions, 11 deletions
diff --git a/main.go b/main.go
index 2620b0ce..58526681 100644
--- a/main.go
+++ b/main.go
@@ -24,7 +24,6 @@ var flags = [...]string{
"/uninstalltunnelservice CONFIG_PATH",
"/managerservice",
"/tunnelservice CONFIG_PATH",
- "/tunneldebug CONFIG_PATH",
"/ui CMD_READ_HANDLE CMD_WRITE_HANDLE CMD_EVENT_HANDLE",
}
@@ -131,16 +130,7 @@ func main() {
if len(os.Args) != 3 {
usage()
}
- err := service.RunTunnel(os.Args[2], false)
- if err != nil {
- fatal(err)
- }
- return
- case "/tunneldebug":
- if len(os.Args) != 3 {
- usage()
- }
- err := service.RunTunnel(os.Args[2], true)
+ err := service.RunTunnel(os.Args[2])
if err != nil {
fatal(err)
}