mirror of
https://github.com/tailscale/tailscale.git
synced 2024-12-11 10:44:41 +00:00
e016eaf410
For the service, all we need to do is handle the `svc.SessionChange` command. Upon receipt of a `windows.WTS_SESSION_UNLOCK` event, we fire off a goroutine to flush the DNS cache. (Windows expects responses to service requests to be quick, so we don't want to do that synchronously.) This is gated on an integral registry value named `FlushDNSOnSessionUnlock`, whose value we obtain during service initialization. (See [this link](https://docs.microsoft.com/en-us/windows/win32/api/winsvc/nc-winsvc-lphandler_function_ex) for information re: handling `SERVICE_CONTROL_SESSIONCHANGE`.) Fixes #2956 Signed-off-by: Aaron Klotz <aaron@tailscale.com>
70 lines
1.8 KiB
Go
70 lines
1.8 KiB
Go
// Copyright (c) 2021 Tailscale Inc & AUTHORS All rights reserved.
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
// Code generated by gen_deps.go; DO NOT EDIT.
|
|
|
|
package integration
|
|
|
|
import (
|
|
// And depend on a bunch of tailscaled innards, for Go's test caching.
|
|
// Otherwise cmd/go never sees that we depend on these packages'
|
|
// transitive deps when we run "go install tailscaled" in a child
|
|
// process and can cache a prior success when a dependency changes.
|
|
_ "context"
|
|
_ "crypto/tls"
|
|
_ "encoding/json"
|
|
_ "errors"
|
|
_ "flag"
|
|
_ "fmt"
|
|
_ "github.com/go-multierror/multierror"
|
|
_ "golang.org/x/sys/windows"
|
|
_ "golang.org/x/sys/windows/svc"
|
|
_ "golang.org/x/sys/windows/svc/mgr"
|
|
_ "golang.zx2c4.com/wireguard/windows/tunnel/winipcfg"
|
|
_ "inet.af/netaddr"
|
|
_ "io"
|
|
_ "io/ioutil"
|
|
_ "log"
|
|
_ "net"
|
|
_ "net/http"
|
|
_ "net/http/httptrace"
|
|
_ "net/http/httputil"
|
|
_ "net/http/pprof"
|
|
_ "net/url"
|
|
_ "os"
|
|
_ "os/signal"
|
|
_ "runtime"
|
|
_ "runtime/debug"
|
|
_ "strconv"
|
|
_ "strings"
|
|
_ "syscall"
|
|
_ "tailscale.com/derp/derphttp"
|
|
_ "tailscale.com/ipn"
|
|
_ "tailscale.com/ipn/ipnserver"
|
|
_ "tailscale.com/logpolicy"
|
|
_ "tailscale.com/logtail/backoff"
|
|
_ "tailscale.com/net/dns"
|
|
_ "tailscale.com/net/interfaces"
|
|
_ "tailscale.com/net/netns"
|
|
_ "tailscale.com/net/portmapper"
|
|
_ "tailscale.com/net/socks5/tssocks"
|
|
_ "tailscale.com/net/tshttpproxy"
|
|
_ "tailscale.com/net/tstun"
|
|
_ "tailscale.com/paths"
|
|
_ "tailscale.com/tailcfg"
|
|
_ "tailscale.com/types/flagtype"
|
|
_ "tailscale.com/types/key"
|
|
_ "tailscale.com/types/logger"
|
|
_ "tailscale.com/util/osshare"
|
|
_ "tailscale.com/util/winutil"
|
|
_ "tailscale.com/version"
|
|
_ "tailscale.com/version/distro"
|
|
_ "tailscale.com/wf"
|
|
_ "tailscale.com/wgengine"
|
|
_ "tailscale.com/wgengine/monitor"
|
|
_ "tailscale.com/wgengine/netstack"
|
|
_ "tailscale.com/wgengine/router"
|
|
_ "time"
|
|
)
|