https://github.com/tailscale/libtailscale
Tailscale C library
https://github.com/tailscale/libtailscale
Last synced: about 1 year ago
JSON representation
Tailscale C library
- Host: GitHub
- URL: https://github.com/tailscale/libtailscale
- Owner: tailscale
- License: bsd-3-clause
- Created: 2023-02-21T01:01:40.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-03-25T14:25:55.000Z (about 1 year ago)
- Last Synced: 2025-04-13T04:05:07.250Z (about 1 year ago)
- Language: Swift
- Homepage:
- Size: 135 KB
- Stars: 215
- Watchers: 24
- Forks: 25
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](https://github.com/tailscale/tailscale/issues).
## License
BSD 3-Clause for this repository, see LICENSE.