mirror of https://github.com/caddyserver/caddy.git
Fix inverted logic in Windows service detection (#5106)
This commit is contained in:
parent
b1d04f5b39
commit
da24f57dac
|
@ -21,7 +21,7 @@ import (
|
|||
|
||||
func init() {
|
||||
isService, err := svc.IsWindowsService()
|
||||
if err != nil || isService {
|
||||
if err != nil || !isService {
|
||||
return
|
||||
}
|
||||
go func() {
|
||||
|
|
Loading…
Reference in New Issue