Versions in this module Expand all Collapse all v0 v0.2.30 Nov 17, 2026 v0.2.29 Nov 10, 2026 Changes in this version + var ErrHostDial = errors.New("tailnet: refusing a connection outside the private network") + type Peer struct + Addrs []netip.Addr + ID string + Name string + NodeKey string + type PeerStatus struct + Direct string + Online bool + Relay string + type Server struct + func Start(ctx context.Context, dir, controlURL, hostname, authKey string, ...) (*Server, error) + func (s *Server) Close() error + func (s *Server) Dial(ctx context.Context, addr netip.AddrPort) (net.Conn, error) + func (s *Server) Listen(port uint16) (net.Listener, error) + func (s *Server) Status(ctx context.Context) (Status, error) + func (s *Server) WatchRemovals(ctx context.Context, changed func()) (run func() error, err error) + func (s *Server) WhoIs(ctx context.Context, addr string) (Peer, error) + type Status struct + Peers []PeerStatus + Self Peer + State string