1# Through Caddy, the address the servers count by is the one Caddy saw2# (X-Forge-Client-IP, set from {client_ip}): a client that sends its own3# X-Forge-Client-IP, a new one each time, is still one address, and the4# sign-in options limit stops it after 20.5. "$(dirname "$0")/../lib.sh"6user dami7export FORGE_BASE_URL=https://forge.test8caddy_server9ask() { http -s -o /dev/null -w '%{http_code}' -X POST -H 'Origin: https://forge.test' -H "X-Forge-Client-IP: 198.51.100.$1" -d '{}' "$C/login/options"; }10n=011while [ "$n" -lt 20 ]; do12 eq "$(ask "$n")" 20013 n=$((n + 1))14done15eq "$(ask 99)" 429