plutosdr-fw icon indicating copy to clipboard operation
plutosdr-fw copied to clipboard

legal_info_html.sh goes into infinite loop for http code 302

Open catkira opened this issue 3 years ago • 0 comments
trafficstars

For dropbear I get this http 302

curl -IsS https://matt.ucc.asn.au/dropbear/releases
result = HTTP/2 302
date: Sat, 06 Aug 2022 12:42:01 GMT
content-length: 0
location: https://matt.ucc.asn.au/dropbear/releases
cf-cache-status: DYNAMIC
expect-ct: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
report-to: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v3?s=FawCCY%2B6QQRbsu%2BKZu3XdegGmzThjBiJ3GuAxExzd7hBjkng%2FxBvPpLQ4nY%2BrZdZVbQAuUBVw%2FbIUymxUDcwF2lq8x4wzZcLbJ%2BXa1LP27asTMtIVcOSQRYS2hRPW2QuYg%3D%3D"}],"group":"cf-nel","max_age":604800}
nel: {"success_fraction":0,"report_to":"cf-nel","max_age":604800}
server: cloudflare
cf-ray: 7367d999eb8dbb4d-FRA

the relay location is the same as the original location, thus its just an infinite loop and the script never finishes. I have added a retry limit to fix this: https://github.com/catkira/plutosdr-fw/commit/301778c4a15b35597bbdfbced3307bdc9518d1a9

I have other stuff too in my master branch, therefore its easiest if You cherry-pick this commit in case You want to merge it.

catkira avatar Aug 06 '22 13:08 catkira