mirror of
https://github.com/Drop-OSS/libtailscale.git
synced 2026-01-30 20:55:18 +01:00
d5a3c8e8ef4dd04298093a1038d5f44b7658bcf0
updates tailscale/tailscale#13937 This adds localAPI support into TailscaleKit. LocalAPI can now be queried via the SOCK5 proxy on both MacOS and iOS. This also fixes SOCKS5 support for iOS so you can simply apply our config to a URLSession. This pulls in most of LocalAPI - though much of it is untested, it's based on the implementation in tailscale/corp/xcode. Unit tests pending. Signed-off-by: Jonathan Nobels <jonathan@tailscale.com>
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.
Description
⚠️ ARCHIVED: Original GitHub repository no longer exists. Preserved as backup on 2026-01-30T23:26:04.739Z
Languages
Swift
50.9%
Go
15%
Ruby
9.1%
C
8.8%
Python
4.9%
Other
11.3%