mirror of
https://github.com/tailscale/tailscale.git
synced 2025-07-31 16:23:44 +00:00
protect nil pointer
This commit is contained in:
parent
05277e020e
commit
3ed0736ae9
@ -129,6 +129,9 @@ func (sl StreamLayer) Accept() (net.Conn, error) {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
if conn == nil || conn.RemoteAddr() == nil {
|
||||
continue
|
||||
}
|
||||
addr, err := addrFromServerAddress(conn.RemoteAddr().String())
|
||||
if err != nil {
|
||||
// TODO should we stay alive here?
|
||||
|
Loading…
x
Reference in New Issue
Block a user