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


/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