control/controlclient: fix recent set-dns regression

SetDNS calls were broken by 6d04184325 the other day. Unreleased.

Caught by tests in another repo.

Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
Brad Fitzpatrick 2022-09-25 16:17:31 -07:00 committed by Brad Fitzpatrick
parent fb4e23506f
commit 8a0cb4ef20

View File

@ -1438,7 +1438,7 @@ func (c *Direct) setDNSNoise(ctx context.Context, req *tailcfg.SetDNSRequest) er
if err != nil {
return err
}
res, err := nc.post(ctx, "/machine/set-dns", req)
res, err := nc.post(ctx, "/machine/set-dns", &newReq)
if err != nil {
return err
}