You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tailscale/control
Maisem Ali 2c89b3a601 control/controlbase: make Conn.Write return consumed bytes
Currently `Write` returns the number of ciphertext bytes written.
According to the docs for io.Writer, Write should return the amount
of bytes consumed from the input.
```
// Write writes len(p) bytes from p to the underlying data stream.
// It returns the number of bytes written from p (0 <= n <= len(p))
// and any error encountered that caused the write to stop early.
// Write must return a non-nil error if it returns n < len(p).
// Write must not modify the slice data, even temporarily.
Write(p []byte) (n int, err error)
```

Fixes #4126

Signed-off-by: Maisem Ali <maisem@tailscale.com>
3 years ago
..
controlbase control/controlbase: make Conn.Write return consumed bytes 3 years ago
controlclient control/controlclient: make MapRequests go over noise. 3 years ago
controlhttp controlhttp: add some docs, change Dial's path from /switch to /ts2021 3 years ago
controlknobs envknob: add new package for all the strconv.ParseBool(os.Getenv(..)) 3 years ago