1# Each address may ask for sign-in options 20 times a minute; the next is2# a 429 that says to wait. Another address is counted apart.3. "$(dirname "$0")/../lib.sh"4user dami5export FORGE_BASE_URL=https://forge.test6private_server7ask() { http -s -o /dev/null -w '%{http_code}' -X POST -H 'Origin: https://forge.test' -H "X-Forge-Client-IP: $1" -d '{}' "$PRIV/login/options"; }8n=09while [ "$n" -lt 20 ]; do10 eq "$(ask 192.0.2.1)" 20011 n=$((n + 1))12done13eq "$(ask 192.0.2.1)" 42914eq "$(ask 192.0.2.2)" 200