MCPcopy Index your code
hub / github.com/tailscale/tailscale / Start

Method Start

cmd/containerboot/main_test.go:1490–1508  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1488}
1489
1490func (lc *localAPI) Start() error {
1491 path := filepath.Join(lc.FSRoot, "tmp/tailscaled.sock.fake")
1492 if err := os.MkdirAll(filepath.Dir(path), 0700); err != nil {
1493 return err
1494 }
1495
1496 ln, err := net.Listen("unix", path)
1497 if err != nil {
1498 return err
1499 }
1500
1501 lc.srv = &http.Server{
1502 Handler: lc,
1503 }
1504 lc.Path = path
1505 lc.cond = sync.NewCond(&lc.Mutex)
1506 go lc.srv.Serve(ln)
1507 return nil
1508}
1509
1510func (lc *localAPI) Close() {
1511 lc.srv.Close()

Callers 1

newTestEnvFunction · 0.95

Calls 2

ListenMethod · 0.65
ServeMethod · 0.45

Tested by

no test coverage detected