You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tailscale/cmd/tailscaled
Aaron Klotz e016eaf410 cmd/tailscaled: conditionally flush Windows DNS cache on SessionChange
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>
3 years ago
..
debug.go cmd/tailscaled: appease a security scanner 3 years ago
depaware.txt all: disable TCP keep-alives on iOS/Android 3 years ago
install_darwin.go cmd/tailscaled: remove tailscaled binary on uninstall-system-daemon 4 years ago
install_windows.go ipn/ipnlocal: add file sharing to windows shell 4 years ago
proxy.go cmd/tailscaled: add support for running an HTTP proxy 3 years ago
tailscaled.defaults cmd/tailscaled: rename relaynode reference in defaults file comment 5 years ago
tailscaled.go cmd/tailscaled: add support for running an HTTP proxy 3 years ago
tailscaled.openrc tstest/integration/vms: use an in-process logcatcher (#2360) 3 years ago
tailscaled.service cmd/tailscaled: set StateDirectoryMode=0700 in tailscaled.service 3 years ago
tailscaled_bird.go wgengine/userspace: add support to automatically enable/disable the tailscale 3 years ago
tailscaled_notwindows.go all: gofmt with Go 1.17 3 years ago
tailscaled_windows.go cmd/tailscaled: conditionally flush Windows DNS cache on SessionChange 3 years ago