NewClient returns a client that will connect to the server identified by the given token. It is shorthand for &Client{Server: server}; see [Client] for the optional fields that may also be set before the client's first use.
(server ConnBlob)
| 1453 | // &Client{Server: server}; see [Client] for the optional fields that |
| 1454 | // may also be set before the client's first use. |
| 1455 | func NewClient(server ConnBlob) *Client { |
| 1456 | return &Client{Server: server} |
| 1457 | } |
| 1458 | |
| 1459 | // initLocked builds the client's network stack (WireGuard engine and |
| 1460 | // netstack) on first use, with defaults for unset config fields. It |
nothing calls this directly
no outgoing calls
no test coverage detected