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>
pull/5750/head
Brad Fitzpatrick 2 years ago committed by Brad Fitzpatrick
parent fb4e23506f
commit 8a0cb4ef20

@ -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
}

Loading…
Cancel
Save