On macOS a connected socket using the physical source lost its route before PF could see the packet. Fresh sockets could leave via the physical uplink, but Darwin rejected reverse-NAT replies delivered to a utun address there. With two live meshes remote control and data sessions expired within a minute. Install matching interface-scoped uplink routes before capturing the two unscoped defaults. Keep PF state on the physical interface, preserve transport ports and return tagged replies via loopback. Reconcile uplink changes and recover only owned routes using a private journal and kernel markers. On Windows keep existing LAN routes, retain recent verified reconnect paths and refresh the gateway and relay DNS without replacing the split defaults. Exercise two memberships of the same peer, new and established native transport sockets, ordinary application traffic and scoped route cleanup. Run hosted macOS and Windows native regressions on affected changes. Bump the packages to 1.0.3-rc1 and encode Debian prereleases with a tilde so apt can upgrade to the final release. Mesh wire formats and identities are unchanged. Checked workspace formatting, strict Clippy and the full workspace suite on macOS (586 passed, four opt-in tests skipped by default). The privileged macOS kernel test passed separately. A launchd trial of the RC kept master and ch reachable over both meshes and used the external exit past the original timeout. Disabling the exit restored the physical IP and cleared the routes. Linux ARM64 passed four real-agent exit tests and the privileged netns regression. The RC APK passed the dual-subnet UDP/ICMP test on an Android 37 ARM64 emulator. Verified Debian and pacman version ordering. Native Windows execution is covered by the hosted workflow and was not run on this Mac.
17 lines
623 B
Bash
17 lines
623 B
Bash
#!/usr/bin/env bash
|
|
# Build RC and stable packages and verify apt's upgrade order.
|
|
set -euo pipefail
|
|
here="$(cd "$(dirname "$0")" && pwd)"
|
|
work="$(mktemp -d)"
|
|
trap 'rm -rf "$work"' EXIT
|
|
|
|
for version in 1.0.3-rc1 1.0.3-rc2 1.0.3; do
|
|
bash "$here/build-deb.sh" /usr/bin/true amd64 "$version" "$work/$version.deb"
|
|
done
|
|
|
|
version_of() { dpkg-deb -f "$work/$1.deb" Version; }
|
|
test "$(version_of 1.0.3)" = '1.0.3'
|
|
dpkg --compare-versions "$(version_of 1.0.3-rc1)" gt 1.0.2
|
|
dpkg --compare-versions "$(version_of 1.0.3-rc1)" lt "$(version_of 1.0.3-rc2)"
|
|
dpkg --compare-versions "$(version_of 1.0.3-rc2)" lt "$(version_of 1.0.3)"
|