The pull request build set EXTRA_LDFLAGS as a prefix of the go build
command and expanded ${EXTRA_LDFLAGS} in the same command, which the
shell does before the prefix assignment takes effect, so the flags were
always empty. The release build sets them in the job environment and
was not affected. Use the matrix value directly.
loong64 builds with cgo for mattn/go-sqlite3, and zig targeted
loongarch64-linux-gnu, so since 2.5.14 both binaries were linked
dynamically against glibc (interpreter
/lib64/ld-linux-loongarch-lp64d.so.1). The Alpine loongarch64 package
installed but neither binary could start on musl. Target musl and link
statically instead, so the binaries run on glibc and musl systems
alike. -linkmode=external makes the core, which has no cgo package of
its own, go through zig as well; with the internal linker it cannot
resolve the libc symbols of a static build.
_install_zig.yml was declared as a reusable workflow but called from a
step, and a step-level uses only accepts an action, so the workflows
failed to validate. A job-level workflow call cannot help here either,
because Zig has to be on PATH in the same job as the build.
Move the install into .github/actions/install-zig, which pins the Zig
version itself and keeps both call sites on a single step.
Three service packages outside the executable's dependency graph
(common/antiPollution, pkg/util/gopeed, kernel/vmessInfo), a blank
import of miekg/dns the core already imports, the --core-type flag no
code read, the PutAccount handler whose route was commented out, two GUI
API wrappers without a caller, two .SRCINFO files the release regenerates
and an unreferenced runit sample. The workflow path filters watched a
root go.mod that does not exist and the PR build skipped core/.
The binaries workflow, the PR workflow and build.ps1 no longer pass
-tags tinytun; there is nothing behind the tag. The Windows installer
takes wintun.dll from the official 0.14.1 package, pinned by hash, one
DLL per architecture, and deletes a tinytun.exe an earlier installer left
in the application's bin directory. The README states what the built-in
TUN does and its known limitation on Windows and macOS.
The vendored core/xray submodule is dropped. xray-core is now pinned via a
go mod pseudo-version resolving to v26.7.28 (commit 5ca6f4b7); v26 tags are
not directly resolvable because Xray's module path lacks the /v26 suffix, so
the pin must be made by commit hash. CI workflows and the AUR PKGBUILD no
longer need "submodules: recursive" / "git submodule update".
The juicity and tuic outbounds are ported from softwind to
github.com/daeuniverse/outbound (temporarily replaced with an olicesx fork
pending sticky-ip support):
- Dialer calls use DialContext; the network string is decoded with
netproxy.ParseMagicNetwork instead of a "udp" prefix check, since it may
be binary-encoded via netproxy.MagicNetwork.
- A packetConnAdapter wraps xray's UDP dial result: outbound asserts the
underlay conn to netproxy.PacketConn whose ReadFrom/WriteTo signatures
(netip.AddrPort / string) differ from net.PacketConn, while xray returns
*internet.PacketConnWrapper.
- Update core/xray submodule from v1.260327.0 (v26.3.27) to v26.6.1
- Remove deprecated AllowInsecure field from all protocol structs
- Add PinnedPeerCertSha256 and VerifyPeerCertByName fields (service layer)
- Update ngui (Nuxt) frontend with text inputs for new fields
- Update gui (Vue 2) frontend with text inputs for new fields
- Keep existing PinnedSHA256 for juicity (no duplicate)
- Backward compatible: old allowInsecure params silently ignored
- Run go mod tidy to update dependencies
ci: upgrade download-artifact@v4 to v7
ci: use matrix workflow to build
ci: use matrix workflow to build
ci: use matrix workflow to build
ci: use matrix workflow to build
Squashed from:
- 916e2f66 Optimize CI: add tinytun build tag for win/mac/linux x64+arm64, abstract web build into reusable workflow
- 471b623f Remove with_gvisor build tag from all scripts and CI workflows
- bb6e2fd6 Split binary build, Linux packages, and Windows installer into reusable workflows
- 19584dcb ci: fix windows inno installer build
- 378934b8 ci: return go 1.24
Co-authored-by: Markson Pigeonzilla <marksonpigeonzilla@bugdows.cn>
Co-authored-by: Markson Hon <marksonhon@nixos.local>
Squashed from:
- 856a3730 ci: update go to 1.26
- 191be38f tun: fix IPv6 address under win
- 3ca4d5cd windows: v2rayA should read win env like %temp%
- 48a84438 windows: v2rayA should start after modified PATH
- c87bbf62 fix .exe ext-name under windows
- 614bfe1c dns: fix a error about dns format
- 991319ff pre.go: don't create C:\etc
- 9f31b39c translated all comments to English
- aaa269f7 try to fix Tun DNS
- 25c84ad9 面向云代理会话的 VS Code 中的检查点
Co-authored-by: Markson Hon <markson@nixos.local>