|
|
@ -51,6 +51,7 @@ import (
|
|
|
|
"tailscale.com/types/logger"
|
|
|
|
"tailscale.com/types/logger"
|
|
|
|
"tailscale.com/types/logid"
|
|
|
|
"tailscale.com/types/logid"
|
|
|
|
"tailscale.com/util/osdiag"
|
|
|
|
"tailscale.com/util/osdiag"
|
|
|
|
|
|
|
|
"tailscale.com/util/syspolicy"
|
|
|
|
"tailscale.com/util/winutil"
|
|
|
|
"tailscale.com/util/winutil"
|
|
|
|
"tailscale.com/version"
|
|
|
|
"tailscale.com/version"
|
|
|
|
"tailscale.com/wf"
|
|
|
|
"tailscale.com/wf"
|
|
|
@ -131,7 +132,7 @@ func runWindowsService(pol *logpolicy.Policy) error {
|
|
|
|
osdiag.LogSupportInfo(logger.WithPrefix(log.Printf, "Support Info: "), osdiag.LogSupportInfoReasonStartup)
|
|
|
|
osdiag.LogSupportInfo(logger.WithPrefix(log.Printf, "Support Info: "), osdiag.LogSupportInfoReasonStartup)
|
|
|
|
}()
|
|
|
|
}()
|
|
|
|
|
|
|
|
|
|
|
|
if logSCMInteractions, _ := winutil.GetPolicyInteger("LogSCMInteractions"); logSCMInteractions != 0 {
|
|
|
|
if logSCMInteractions, _ := syspolicy.GetBoolean(syspolicy.LogSCMInteractions, false); logSCMInteractions {
|
|
|
|
syslog, err := eventlog.Open(serviceName)
|
|
|
|
syslog, err := eventlog.Open(serviceName)
|
|
|
|
if err == nil {
|
|
|
|
if err == nil {
|
|
|
|
syslogf = func(format string, args ...any) {
|
|
|
|
syslogf = func(format string, args ...any) {
|
|
|
@ -158,7 +159,7 @@ func (service *ipnService) Execute(args []string, r <-chan svc.ChangeRequest, ch
|
|
|
|
syslogf("Service start pending")
|
|
|
|
syslogf("Service start pending")
|
|
|
|
|
|
|
|
|
|
|
|
svcAccepts := svc.AcceptStop
|
|
|
|
svcAccepts := svc.AcceptStop
|
|
|
|
if flushDNSOnSessionUnlock, _ := winutil.GetPolicyInteger("FlushDNSOnSessionUnlock"); flushDNSOnSessionUnlock != 0 {
|
|
|
|
if flushDNSOnSessionUnlock, _ := syspolicy.GetBoolean(syspolicy.FlushDNSOnSessionUnlock, false); flushDNSOnSessionUnlock {
|
|
|
|
svcAccepts |= svc.AcceptSessionChange
|
|
|
|
svcAccepts |= svc.AcceptSessionChange
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|