mirror of
https://github.com/caddyserver/caddy.git
synced 2024-12-16 21:56:40 -05:00
Fix inverted logic in Windows service detection (#5106)
This commit is contained in:
parent
b1d04f5b39
commit
da24f57dac
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@ import (
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
isService, err := svc.IsWindowsService()
|
isService, err := svc.IsWindowsService()
|
||||||
if err != nil || isService {
|
if err != nil || !isService {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
go func() {
|
go func() {
|
||||||
|
|
Loading…
Reference in a new issue