Add funnel functionality to C library
While working on Tailscale in js[^1] I've noticed that while tailscale server equivalent was present, tailscale funnel was missing, although it's available in the underlying tsnet library.
This PR exposes it to be usable from C.
Contributions:
-
tailscale_listen_funnel— starts a funnel instead of tailnet only listener, otherwise equivalent totailscale_listen -
tailscale_cert_domains— retrieves the domain name under which the funnel is accessible. nice to have for better terminal message -
tailscale_accept_nonblocking— not directly connected to the funnel, but helpful for not blocking the js event loop withtailscale_accept
Also, as I was editing it anyway, I've also fixed some typos in tailscale.h.
I see there is a failing check, but I can't see the whole message. Please let me know what I have to correct and I'll gladly do it. :)
[^1]: PR is a possible future work, but currently FFI in JS is not really standardized. So I've made a separate repo for now.