aboutsummaryrefslogtreecommitdiffhomepage
path: root/service_windows.go
diff options
context:
space:
mode:
authorTobias Gruetzmacher <[email protected]>2022-10-02 22:56:54 +0200
committerGitHub <[email protected]>2022-10-02 16:56:54 -0400
commitda24f57daca431704f953500386758eae2b8de1b (patch)
treea31bca01c74f3e8dee0203582035a2327c7192e6 /service_windows.go
parentb1d04f5b39df58e092ad503e9ccd0584b30936a1 (diff)
downloadcaddy-da24f57daca431704f953500386758eae2b8de1b.tar.gz
caddy-da24f57daca431704f953500386758eae2b8de1b.zip
Fix inverted logic in Windows service detection (#5106)
Diffstat (limited to 'service_windows.go')
-rw-r--r--service_windows.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/service_windows.go b/service_windows.go
index 7590fc3ca..6db299256 100644
--- a/service_windows.go
+++ b/service_windows.go
@@ -21,7 +21,7 @@ import (
func init() {
isService, err := svc.IsWindowsService()
- if err != nil || isService {
+ if err != nil || !isService {
return
}
go func() {