MCPcopy
hub / github.com/tailscale/tailscale / LocalClient

Method LocalClient

tsnet/tsnet.go:410–415  ·  view source on GitHub ↗

LocalClient returns a LocalClient that speaks to s. It will start the server if it has not been started yet. If the server's already been started successfully, it doesn't return an error.

()

Source from the content-addressed store, hash-verified

408// It will start the server if it has not been started yet. If the server's
409// already been started successfully, it doesn't return an error.
410func (s *Server) LocalClient() (*local.Client, error) {
411 if err := s.Start(); err != nil {
412 return nil, err
413 }
414 return s.localClient, nil
415}
416
417// TestHooks are hooks meant for internal-testing only; they're not stable
418// or documented, intentionally.

Callers 15

UpMethod · 0.95
getCertMethod · 0.95
mainFunction · 0.95
mainFunction · 0.95
mainFunction · 0.95
mainFunction · 0.95
mainFunction · 0.95
runFunction · 0.95
initTSNetFunction · 0.95
mainFunction · 0.95
benchGiantTailnetFunction · 0.95
Example_tshelloFunction · 0.45

Calls 1

StartMethod · 0.95

Tested by 15

benchGiantTailnetFunction · 0.76
Example_tshelloFunction · 0.36
TestListenSSHFunction · 0.36
TestConnFunction · 0.36
dialIngressConnFunction · 0.36
TestFallbackTCPHandlerFunction · 0.36
TestCapturePcapFunction · 0.36
TestUDPConnFunction · 0.36
setupTwoClientTestFunction · 0.36
verifyProxyGroupTailnetFunction · 0.36