mirror of
https://github.com/tailscale/tailscale.git
synced 2024-12-01 14:05:39 +00:00
control/controlclient: fix typo/braino in error message
Thanks to @normanr for noticing. Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
parent
0debb99f08
commit
b461ba9554
@ -1281,7 +1281,7 @@ func (c *Direct) SetDNS(ctx context.Context, req *tailcfg.SetDNSRequest) error {
|
|||||||
defer res.Body.Close()
|
defer res.Body.Close()
|
||||||
if res.StatusCode != 200 {
|
if res.StatusCode != 200 {
|
||||||
msg, _ := ioutil.ReadAll(res.Body)
|
msg, _ := ioutil.ReadAll(res.Body)
|
||||||
return fmt.Errorf("sign-dns response: %v, %.200s", res.Status, strings.TrimSpace(string(msg)))
|
return fmt.Errorf("set-dns response: %v, %.200s", res.Status, strings.TrimSpace(string(msg)))
|
||||||
}
|
}
|
||||||
var setDNSRes struct{} // no fields yet
|
var setDNSRes struct{} // no fields yet
|
||||||
if err := decode(res, &setDNSRes, &serverKey, &machinePrivKey); err != nil {
|
if err := decode(res, &setDNSRes, &serverKey, &machinePrivKey); err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user