mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-06 19:01:54 +00:00
`make dotenv` previously copied the static 1500 default from env/default.env into .env for the compose bridge MTU, regardless of the host's actual outbound MTU. On hosts where the default-route interface sits below 1500 (VPN, tunnels, jumbo-frame negotiation failure) the bridge ended up larger than the path MTU and TLS handshakes silently lost their ServerHello fragments — every dotenv regeneration without an explicit INFINITO_OUTER_NETWORK_MTU= override silently re-introduced the regression. Replaces the static-passthrough entry with a dedicated handler that walks /proc/net/route to find the default-route interface, reads /sys/class/net/<iface>/mtu, and seeds the value via setdefault so any caller-set env still wins. Falls back to the env/default.env static default when detection cannot complete (no default route, unreadable sysfs entry, foreign host layout). Adds 13 unit tests covering the /proc parse, the sysfs read, the composition, and the handler's apply contract (detected wins, static fallback, no-op when both empty, caller-env override). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>