No description
Find a file
zhangdongya cab04836d0
Some checks failed
Ruby / Ruby 3.2.0 (push) Failing after 14m10s
tests / build (push) Successful in 32m56s
Source Package / build (push) Failing after 40m21s
swift / build (push) Has been cancelled
libtailscale: fix build with apple clang.
2025-05-23 16:29:47 -04:00
.github/workflows workflows: add TailscaleKit tests to CI 2025-05-22 12:18:39 -04:00
example libtailscale: fix build with apple clang. 2025-05-23 16:29:47 -04:00
python libtailscale: make tailscale_listener pollable 2023-03-18 15:04:28 -07:00
ruby libtailscale: make tailscale_listener pollable 2023-03-18 15:04:28 -07:00
sourcepkg sourcepkg: add a complete source package build 2023-08-29 11:56:40 -07:00
swift workflows: add TailscaleKit tests to CI 2025-05-22 12:18:39 -04:00
tsnetctest libtailscale: make tailscale_listener pollable 2023-03-18 15:04:28 -07:00
tstestcontrol swift: add NWConnection-inspired Swift 6 compatible Tailscale.framework 2025-01-02 14:35:20 -05:00
.gitignore swift: add iOS simulator support 2025-05-22 10:50:34 -04:00
go.mod swift, go.mod: adding localAPI support via SOCK5 2025-04-25 11:55:09 -04:00
go.sum swift, go.mod: adding localAPI support via SOCK5 2025-04-25 11:55:09 -04:00
LICENSE LICENSE: add common 3-clause license we use 2023-03-01 20:22:42 -08:00
Makefile swift: add iOS simulator support 2025-05-22 10:50:34 -04:00
README.md Makefile/swift: update Makefile and add support for iOS 2025-03-24 14:01:54 -04:00
tailscale.c Add tailscale_enable_funnel_to_localhost_plaintext_http1 to tailscale.h 2025-01-21 08:12:46 -08:00
tailscale.go Add tailscale_enable_funnel_to_localhost_plaintext_http1 to tailscale.h 2025-01-21 08:12:46 -08:00
tailscale.h Add tailscale_enable_funnel_to_localhost_plaintext_http1 to tailscale.h 2025-01-21 08:12:46 -08:00
tailscale_test.go swift: add NWConnection-inspired Swift 6 compatible Tailscale.framework 2025-01-02 14:35:20 -05:00

libtailscale

libtailscale is a C library that embeds Tailscale into a process.

Use this library to compile Tailscale into your program and get an IP address on a tailnet, entirely from userspace.

Building

With the latest version of Go, run:

go build -buildmode=c-archive

or

make archive

This will produce a libtailscale.a file. Link it into your binary, and use the tailscale.h header to reference it.

It is also possible to build a shared library using

go build -buildmode=c-shared

or

make shared

Bugs

Please file any issues about this code or the hosted service on the issue tracker.

License

BSD 3-Clause for this repository, see LICENSE.