Start connects the server to the tailnet. Optional: any calls to Dial/Listen will also call Start.
()
| 524 | // Start connects the server to the tailnet. |
| 525 | // Optional: any calls to Dial/Listen will also call Start. |
| 526 | func (s *Server) Start() error { |
| 527 | hostinfo.SetPackage("tsnet") |
| 528 | s.initOnce.Do(s.doInit) |
| 529 | return s.initErr |
| 530 | } |
| 531 | |
| 532 | // Up connects the server to the tailnet and waits until it is running. |
| 533 | // On success it returns the current status, including a Tailscale IP address. |