James Tucker acbc2e40b6 libtailscale: remove double-close on connections
If a client program receives the fd then it is responsible for closing
the fd, and we must not close the fd, as we may end up closing the wrong
object.
2023-03-07 14:54:57 -08:00
2023-03-01 08:21:28 -08:00
2023-03-06 11:58:20 -08:00
2023-03-06 11:58:20 -08: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

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

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.

S
Description
Tailscale C library, built for Drop
Readme BSD-3-Clause 113 KiB
Languages
Rust 28.1%
Ruby 21.1%
Go 20.4%
C 13.7%
Python 11.4%
Other 5.3%