HTTPClient returns an HTTP client that is configured to connect over Tailscale. This is useful if you need to have your tsnet services connect to other devices on your tailnet.
()
| 396 | // This is useful if you need to have your tsnet services connect to other devices on |
| 397 | // your tailnet. |
| 398 | func (s *Server) HTTPClient() *http.Client { |
| 399 | return &http.Client{ |
| 400 | Transport: &http.Transport{ |
| 401 | DialContext: s.Dial, |
| 402 | }, |
| 403 | } |
| 404 | } |
| 405 | |
| 406 | // LocalClient returns a LocalClient that speaks to s. |
| 407 | // |
no outgoing calls