mirror of
https://github.com/tailscale/tailscale.git
synced 2025-08-20 01:47:33 +00:00
net/dns: change windows DNS manager to use pointer receiver
This is safer given that we need to close the NRPT database. Signed-off-by: Aaron Klotz <aaron@tailscale.com>
This commit is contained in:
@@ -89,7 +89,7 @@ func TestManagerWindowsGPMove(t *testing.T) {
|
||||
if err != nil {
|
||||
t.Fatalf("NewOSConfigurator: %v\n", err)
|
||||
}
|
||||
mgr := cfg.(windowsManager)
|
||||
mgr := cfg.(*windowsManager)
|
||||
defer mgr.Close()
|
||||
|
||||
usingGP := mgr.nrptDB.writeAsGP
|
||||
@@ -218,7 +218,7 @@ func runTest(t *testing.T, isLocal bool) {
|
||||
if err != nil {
|
||||
t.Fatalf("NewOSConfigurator: %v\n", err)
|
||||
}
|
||||
mgr := cfg.(windowsManager)
|
||||
mgr := cfg.(*windowsManager)
|
||||
defer mgr.Close()
|
||||
|
||||
usingGP := mgr.nrptDB.writeAsGP
|
||||
|
Reference in New Issue
Block a user