Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FixNameError ¶
FixNameOrError cleans up resolver errors; the Go stdlib doesn't notice when you swap out the host its resolver connects to, and prints the resolv.conf resolver in error messages, which is super confusing for users.
func ResolverForOrg ¶
func ResolverForOrg(ctx context.Context, c *agent.Client, org *api.Organization) (*net.Resolver, string, error)
ResolverForOrg takes a connection to the wireguard agent and an organization and returns a working net.Resolver for DNS for that organization, along with the address of the nameserver.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.