Corresponding source
Tuno Connect links the GPL-3.0 licensed sing-box engine. This page carries everything needed to rebuild the engine exactly as it is shipped.
Written offer
YOUR SAFETY LTD offers to any possessor of the Tuno Connect object code, for a period of three years from the date of that copy’s distribution, the complete corresponding source code of the GPL-covered components it contains, on a durable medium, for no more than our reasonable cost of physically performing the distribution. Write to support@tunoconnect.app. The same material is published here, which is where we would direct you first.
Upstream source
The engine is built from github.com/SagerNet/sing-box at
tag v1.13.12, unmodified. Note that upstream tag v1.13.13 does not build for this
target: it raises sing-tun to a revision whose DefaultInterfaceMonitor requires
MyInterfaces(), while its own experimental/libbox still implements
MyInterface(). Tag v1.13.12 is internally consistent.
Dependency versions
The dependency graph is pinned by the upstream module files, reproduced here exactly as used: go.mod.
Build
Built on macOS with Go 1.24 and the sagernet fork of gomobile. Build tags are reduced from the
upstream defaults: Tailscale, Cronet/naive, WireGuard, QUIC and DHCP are not included.
#!/bin/sh
# Reproduces Frameworks/Libbox.xcframework as shipped in Tuno Connect.
set -eu
go install github.com/sagernet/gomobile/cmd/gomobile@latest
go install github.com/sagernet/gomobile/cmd/gobind@latest
git clone --depth 1 --branch v1.13.12 https://github.com/SagerNet/sing-box
cd sing-box
gomobile bind -v \
-target ios,iossimulator \
-libname=box \
-trimpath -buildvcs=false \
-ldflags "-X github.com/sagernet/sing-box/constant.Version=1.13.12 \
-X internal/godebug.defaultGODEBUG=multipathtcp=0 \
-s -w -buildid= -checklinkname=0" \
-tags "with_gvisor,with_utls,with_clash_api,badlinkname,tfogo_checklinkname0,grpcnotrace" \
./experimental/libbox
Downloadable copy: build-libbox.sh.
The app itself
The application code around the engine is our own and is not GPL-licensed; it calls the engine through the
Libbox interface that sing-box publishes for this purpose. If you believe a specific part of the
combined work should be provided under the GPL, write to
support@tunoconnect.app and we will address it.