Загрузка данных


n.razhev@n-razhev ~ % /bin/sh <<'TB_CONTROL'
tb_route=$(/sbin/route -n get 1.0.0.1) || exit 1
printf '%s\n' "$tb_route" |
  awk '/route to:|gateway:|interface:/ {print}'

case "$tb_route" in
  *'interface: bridge0'*) ;;
  *) echo 'Stop: destination is not using Thunderbolt.'; exit 1 ;;
esac

/usr/bin/curl -q -4 --noproxy '*' \
  --connect-timeout 5 --max-time 12 --silent --show-error \
  --write-out '\nHTTP=%{http_code} tcp=%{time_connect} tls=%{time_appconnect} total=%{time_total}\n' \
  'https://1.0.0.1/cdn-cgi/trace'
TB_CONTROL
   route to: 1.0.0.1
    gateway: 192.168.77.1
  interface: bridge0
fl=904f110
h=1.0.0.1
ip=46.29.162.7
ts=1791296995.000
visit_scheme=https
uag=curl/8.7.1
colo=DME
sliver=none
http=http/2
loc=RU
tls=TLSv1.3
sni=off
warp=off
gateway=off
rbi=off
kex=X25519

HTTP=200 tcp=0.367491 tls=0.758973 total=1.125134