derpmap

package
v0.3.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 3, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package derpmap provides the tailscale derp map implementation.

Index

Constants

View Source
const TailscaleDERPMapURL = "https://controlplane.tailscale.com/derpmap/default"

Variables

View Source
var DefaultDERPMap tailcfg.DERPMap

DefaultDERPMap is the default Tailscale DERP map. To avoid calling the public Tailscale endpoint, this is initialized from a local file.

Functions

func DownloadTailcaleDERPMap

func DownloadTailcaleDERPMap() (*tailcfg.DERPMap, error)

DownloadTailcaleDERPMap downloads the official Tailscale public DERP map. ref. "prodDERPMap" in tailscale/tailscale/cmd/tailscale/cli/netcheck.go

func GetRegionCode

func GetRegionCode(regionName string) (string, bool)

GetRegionCode returns the region code for the given DERP region name.

Types

This section is empty.

Directories

Path Synopsis
"sync" syncs the tailscale derp map.
"sync" syncs the tailscale derp map.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL