diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2021-11-24 22:19:21 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2021-11-24 22:19:21 +0100 |
commit | a35907cc533a5b26c7d0e983df902bd8b8bdc5c5 (patch) | |
tree | a1c5403c171e9778fc41944ba6de6274cfaaea64 /services/boot.go | |
parent | global: backout AddrFromSlice signature change (diff) | |
download | wireguard-windows-a35907cc533a5b26c7d0e983df902bd8b8bdc5c5.tar.xz wireguard-windows-a35907cc533a5b26c7d0e983df902bd8b8bdc5c5.zip |
mod: remove x/sys fork
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to '')
-rw-r--r-- | services/boot.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/services/boot.go b/services/boot.go index c8ebbd34..6649dafb 100644 --- a/services/boot.go +++ b/services/boot.go @@ -27,7 +27,7 @@ func StartedAtBoot() bool { return } if reason, err := svc.DynamicStartReason(); err == nil { - startedAtBoot = (reason & svc.StartReasonAuto) != 0 || (reason & svc.StartReasonDelayedAuto) != 0 + startedAtBoot = (reason&svc.StartReasonAuto) != 0 || (reason&svc.StartReasonDelayedAuto) != 0 } else if errors.Is(err, windows.ERROR_PROC_NOT_FOUND) { // TODO: Below this line is Windows 7 compatibility code, which hopefully we can delete at some point. startedAtBoot = windows.DurationSinceBoot() < time.Minute*10 @@ -44,4 +44,4 @@ func PrintStarting() { boot = " at boot" } log.Printf("Starting%s %s", boot, version.UserAgent()) -}
\ No newline at end of file +} |