// Dial connects to the address on the tailnet.
// It will start the server if it has not been started yet.
Dial connects to the address on the tailnet.
It will start the server if it has not been started yet.
// Dial connects to the address on the tailnet . // It will start the server if it has not been started yet .
func (s *Server) Dial(ctx context.Context, network, address string) (net.Conn, error) {
	if err := s.Start(); err != nil {
		return nil, err
	}
	return s.dialer.UserDial(ctx, network, address)
}
func ( s * Server ) Dial ( ctx context . Context , network , address string ) ( net . Conn , error ) { if err := s . Start ( ) ; err != nil { return nil , err } return s . dialer . UserDial ( ctx , network , address ) }
Dial connects to the address on the tailnet.
Dial connects to the address on the tailnet .