Versions in this module Expand all Collapse all v1 v1.33.0 Aug 7, 2022 v1.32.0 Aug 7, 2022 v1.31.0 Aug 7, 2022 v1.30.0 Aug 7, 2022 v1.29.0 Aug 7, 2022 Changes in this version + type Client struct + GetSTUNConn4 func() STUNConn + GetSTUNConn6 func() STUNConn + Logf logger.Logf + PortMapper *portmapper.Client + SkipExternalNetwork bool + TimeNow func() time.Time + UDPBindAddr string + Verbose bool + func (c *Client) GetReport(ctx context.Context, dm *tailcfg.DERPMap) (_ *Report, reterr error) + func (c *Client) MakeNextReportFull() + func (c *Client) ReceiveSTUNPacket(pkt []byte, src netip.AddrPort) + type Report struct + GlobalV4 string + GlobalV6 string + HairPinning opt.Bool + ICMPv4 bool + IPv4 bool + IPv4CanSend bool + IPv6 bool + IPv6CanSend bool + MappingVariesByDestIP opt.Bool + OSHasIPv6 bool + PCP opt.Bool + PMP opt.Bool + PreferredDERP int + RegionLatency map[int]time.Duration + RegionV4Latency map[int]time.Duration + RegionV6Latency map[int]time.Duration + UDP bool + UPnP opt.Bool + func (r *Report) AnyPortMappingChecked() bool + func (r *Report) Clone() *Report + type STUNConn interface + ReadFrom func([]byte) (int, net.Addr, error) + WriteTo func([]byte, net.Addr) (int, error) + WriteToUDPAddrPort func([]byte, netip.AddrPort) (int, error)