code: func (p *Peer) LocalAddr() net.Addr {
  	var localAddr net.Addr
  	if atomic.LoadInt32(&p.connected) != 0 {
  		localAddr = p.conn.LocalAddr()
  	}
  	return localAddr
  }
docs: // LocalAddr returns the local address of the connection.
  //
  // This function is safe fo concurrent access.