AtlatestRepositorysigil-http3
sigil-http3 / tree / scriptsphantom-ipv6-punch-run.sh
1
#!/usr/bin/env bash2
set -euo pipefail3
cd "$(dirname "$0")/.."4
umask 0775
mkdir -p build/punch-checks6
node --check scripts/punch-prime.mjs7
node --check scripts/punch-firewall.mjs8
node --check scripts/punch-window.mjs9
node scripts/prepare-punch-inputs.mjs10
timeout --foreground 30 node --test test/test-punch-prime.mjs > build/punch-checks/socket-tests.log 2>&111
printf 'RESULT punch-socket-checks=PASS\n'12
export HTTP3_PREFLIGHT_SAN="IP:127.0.0.1,IP:::1,IP:${HTTP3_IPV4_ADDRESS:-127.0.0.1},IP:$HTTP3_IPV6_ADDRESS,DNS:localhost"13
export HTTP3_PREFLIGHT_PREBUILT=1 HTTP3_PREFLIGHT_HTTPS_PAGE=1 HTTP3_PREFLIGHT_QUERY=114
# 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.16
export HTTP3_SPIKE_SDK_JOB=http3-example HTTP3_SPIKE_TRACE=1 HTTP3_SPIKE_TRACE_PROBE=117
HTTP3_PREFLIGHT_HOST=::1 bash scripts/phantom-browser-preflight.sh18
export HTTP3_SOURCE_REVISION19
HTTP3_SOURCE_REVISION=$(git rev-parse HEAD)20
exec node scripts/punch-window.mjs run