AtlatestRepositorysigil-http3

sigil-http3 / tree / scriptsphantom-ipv6-punch-run.sh

1#!/usr/bin/env bash
2set -euo pipefail
3cd "$(dirname "$0")/.."
4umask 077
5mkdir -p build/punch-checks
6node --check scripts/punch-prime.mjs
7node --check scripts/punch-firewall.mjs
8node --check scripts/punch-window.mjs
9node scripts/prepare-punch-inputs.mjs
10timeout --foreground 30 node --test test/test-punch-prime.mjs > build/punch-checks/socket-tests.log 2>&1
11printf 'RESULT punch-socket-checks=PASS\n'
12export HTTP3_PREFLIGHT_SAN="IP:127.0.0.1,IP:::1,IP:${HTTP3_IPV4_ADDRESS:-127.0.0.1},IP:$HTTP3_IPV6_ADDRESS,DNS:localhost"
13export HTTP3_PREFLIGHT_PREBUILT=1 HTTP3_PREFLIGHT_HTTPS_PAGE=1 HTTP3_PREFLIGHT_QUERY=1
14# This label selects the already reviewed driver contract. No SDK source is needed:
15# the reused binary's exact old SDK hash/pin proof is retained above.
16export HTTP3_SPIKE_SDK_JOB=http3-example HTTP3_SPIKE_TRACE=1 HTTP3_SPIKE_TRACE_PROBE=1
17HTTP3_PREFLIGHT_HOST=::1 bash scripts/phantom-browser-preflight.sh
18export HTTP3_SOURCE_REVISION
19HTTP3_SOURCE_REVISION=$(git rev-parse HEAD)
20exec node scripts/punch-window.mjs run