aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/manager/service.go
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2020-04-05 00:28:47 -0600
committerJason A. Donenfeld <Jason@zx2c4.com>2020-04-05 00:39:49 -0600
commit34e3a000c561fd2c8ef65bdb5a296f0b03095a99 (patch)
tree92557d70ea2433808636e9aafed27bcd5c12bcc2 /manager/service.go
parentsyntax: insist on 256-bit keys, not 257-bit or 258-bit (diff)
downloadwireguard-windows-34e3a000c561fd2c8ef65bdb5a296f0b03095a99.tar.xz
wireguard-windows-34e3a000c561fd2c8ef65bdb5a296f0b03095a99.zip
updater: allow updating from the command line
The administrator user may run `wireguard.exe /update`, which will check for updates and install it if available. A log file may be written using `wireguard.exe /update path\to\log\file.txt`. Requested-by: Elliot Saba <staticfloat@gmail.com> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to '')
-rw-r--r--manager/service.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/manager/service.go b/manager/service.go
index dacb7864..6c3b039b 100644
--- a/manager/service.go
+++ b/manager/service.go
@@ -189,7 +189,7 @@ func (service *managerService) Execute(args []string, r <-chan svc.ChangeRequest
Token: syscall.Token(elevatedToken),
},
Files: []*os.File{devNull, devNull, devNull},
- Dir: userProfileDirectory,
+ Dir: userProfileDirectory,
}
procsLock.Lock()
var proc *os.Process