diff options
author | Tobias Gruetzmacher <[email protected]> | 2022-10-02 22:56:54 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2022-10-02 16:56:54 -0400 |
commit | da24f57daca431704f953500386758eae2b8de1b (patch) | |
tree | a31bca01c74f3e8dee0203582035a2327c7192e6 /service_windows.go | |
parent | b1d04f5b39df58e092ad503e9ccd0584b30936a1 (diff) | |
download | caddy-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.go | 2 |
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() { |