-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
swift: add NWConnection-inspired Swift 6 compatible TailscaleKit.framework #26
Conversation
Nice! File an oss tracking bug for the effort overall? (which can explain the overall goal, links to docs, etc) There will probably be follow-up changes I'd guess. |
6d61c38
to
0b70b0b
Compare
</BuildableProductRunnable> | ||
<EnvironmentVariables> | ||
<EnvironmentVariable | ||
key = "TSNET_FORCE_LOGIN" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe explain in the docs what this does?
Looks great! I would rename this to |
d691004
to
a5c4c78
Compare
a5c4c78
to
8ee2eb0
Compare
8ee2eb0
to
271283d
Compare
271283d
to
a28e351
Compare
updates tailscale/tailscale#13937 Builds a TailscaleKit.framework which wraps libtailscale.a in an actor, providing IncomingConnection, Listener, and OutgoingConnection types which are more usable in pure async Swift code. The method signatures are intended to be similar in form to NWConnection. We also provide an extension to URLSession so you can make URL requests via the user-space proxy. Adds a static library mirroring much of the test control utilities in go, minus the dependency on testing, so that we can export the signatures and link it to tests that cannot run in go. Added functionality to get both the local interface IPs as well as the remote IP of incoming connections accepted by a listener. Fixed a bug in the log writer so we append a newline. This also updates to the latest go toolchain and tailscale version. Signed-off-by: Jonathan Nobels <[email protected]>
a28e351
to
f0921b4
Compare
updates tailscale/tailscale#13937
Builds a Tailscale.framework which wraps libtailscale.a in an actor, providing IncomingConnection, Listener, and OutgoingConnection types which are more usable in pure async Swift code. The method signatures are intended to be similar in form to NWConnection. An extension to NSURLSessionConfiguration is provided which will give you a config that lets you do URL requests via the loopback proxy to hosts on your tailnet.
Added functionality to get both the local interface IPs as well as the remote IP of incoming connections accepted by a listener.
Fixed a bug in the log writer so we append a newline.
This also updates to the latest go toolchain and tailscale version.