pub fn connect(
py: Python<'_>,
key_file_path: Option<String>,
auth_key: Option<String>,
control_server_url: Option<String>,
hostname: Option<String>,
tags: Option<Vec<String>>,
keys: Option<Keystate>,
accept_routes: Option<bool>,
exit_node: Option<String>,
advertise_routes: Option<Vec<String>>,
advertise_exit_node: Option<bool>,
forward_tcp_ports: Option<Vec<u16>>,
forward_udp_ports: Option<Vec<u16>>,
forward_all_ports: Option<bool>,
forward_exit_egress: Option<bool>,
) -> PyResult<Bound<'_, PyAny>>Expand description
Connect to tailscale using the specified parameters.
The forwarding/routing keyword arguments mirror tailscale.Config:
accept_routes(bool): accept and route to subnet routes peers advertise.exit_node(str): route internet-bound traffic through this peer (IP or MagicDNS name).advertise_routes(liststr): CIDRs to advertise as a subnet router.advertise_exit_node(bool): advertise this node as an exit node.forward_tcp_ports/forward_udp_ports(list[int]): ports the inbound forwarder splices.forward_all_ports(bool): forward every TCP/UDP port on advertised routes.forward_exit_egress(bool): actually egress exit-node flows via this host’s real IP.