ec-node: moq-rs draft-07 for Cloudflare relay

This commit is contained in:
every.channel 2026-02-17 02:26:20 -08:00
parent ce8c1319f4
commit 09246513ab
No known key found for this signature in database
6 changed files with 36 additions and 47 deletions

View file

@ -294,7 +294,14 @@ in
${lib.optionalString cfg.tlsDisableVerify "cmd+=(--tls-disable-verify)"}
${extraArgsLine}
exec "''${cmd[@]}"
# Keep the unit alive even if the relay is temporarily unreachable.
# This avoids `switch-to-configuration test` failing due to a unit that exits
# quickly during activation.
trap 'exit 0' INT TERM
while true; do
"''${cmd[@]}" || true
sleep 2
done
'';
};
in

View file

@ -24,6 +24,10 @@ rustPlatform.buildRustPackage {
cargoLock = {
lockFile = ../../Cargo.lock;
outputHashes = {
# Filled iteratively when git dependencies change.
"moq-catalog-0.2.2" = "sha256-df9KXVBRiNewDJ7ZgGBja81PPnk8vC9TA0bDIG0892o=";
};
};
cargoBuildFlags = [ "-p" "ec-node" ];