Add funnel functionality to C library #28
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
While working on Tailscale in js1 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 messagetailscale_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. :)
Footnotes
PR is a possible future work, but currently FFI in JS is not really standardized. So I've made a separate repo for now. ↩