aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/services
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2021-10-28 16:12:52 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2021-10-29 21:09:26 +0200
commitff64ab1bde6c3b69e87847335fd28aa759196023 (patch)
tree4eb0087d9d0f90551f9d2746df245390a3b21257 /services
parentmanager: use pre-seeded fastrandn instead of math.rand (diff)
downloadwireguard-windows-ff64ab1bde6c3b69e87847335fd28aa759196023.tar.xz
wireguard-windows-ff64ab1bde6c3b69e87847335fd28aa759196023.zip
services: mark win7 code the same as elsewhere
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'services')
-rw-r--r--services/boot.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/boot.go b/services/boot.go
index bdcaac2f..c8ebbd34 100644
--- a/services/boot.go
+++ b/services/boot.go
@@ -29,7 +29,7 @@ func StartedAtBoot() bool {
if reason, err := svc.DynamicStartReason(); err == nil {
startedAtBoot = (reason & svc.StartReasonAuto) != 0 || (reason & svc.StartReasonDelayedAuto) != 0
} else if errors.Is(err, windows.ERROR_PROC_NOT_FOUND) {
- // This is an ugly hack for Windows 7, which hopefully we'll be able to remove down the road.
+ // TODO: Below this line is Windows 7 compatibility code, which hopefully we can delete at some point.
startedAtBoot = windows.DurationSinceBoot() < time.Minute*10
} else {
log.Printf("Unable to determine service start reason: %v", err)