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/tsnet
Andrew Dunham 46bdbb3878 cmd/tailscaled, tsnet: don't return an interface containing a nil pointer
This tripped me up when I was testing something and wrote:

    if conn != nil {
        conn.Close()
    }

In netstack mode, when an error occurred we were getting a non-nil error
and a non-nil interface that contained a nil pointer. Instead, just
return a nil interface value.

Updates #cleanup

Signed-off-by: Andrew Dunham <andrew@du.nham.ca>
Change-Id: Id9ef3dd24529e0e8c53adc60ed914c31fbb10cc4
4 months ago
..
example tsnet: add option to run integrated web client 6 months ago
example_tshello_test.go tsnet: add examples (#8289) 10 months ago
example_tsnet_test.go tsnet: add examples (#8289) 10 months ago
tsnet.go cmd/tailscaled, tsnet: don't return an interface containing a nil pointer 4 months ago
tsnet_test.go tsnet: add CapturePcap method for debugging 6 months ago