mirror of
https://github.com/tailscale/tailscale.git
synced 2024-11-29 21:15:39 +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> |
||
---|---|---|
.. | ||
testcontrol | ||
vms | ||
gen_deps.go | ||
integration_test.go | ||
integration.go | ||
tailscaled_deps_test_darwin.go | ||
tailscaled_deps_test_freebsd.go | ||
tailscaled_deps_test_linux.go | ||
tailscaled_deps_test_openbsd.go | ||
tailscaled_deps_test_windows.go |