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
2024-01-05 11:44:17 -05:00
..
example tsnet: add option to run integrated web client 2023-11-16 11:01:55 -08:00
example_tshello_test.go tsnet: add examples (#8289) 2023-07-19 12:36:49 -04:00
example_tsnet_test.go tsnet: add examples (#8289) 2023-07-19 12:36:49 -04:00
tsnet_test.go tsnet: add CapturePcap method for debugging 2023-11-27 12:46:28 -08:00
tsnet.go cmd/tailscaled, tsnet: don't return an interface containing a nil pointer 2024-01-05 11:44:17 -05:00