Patches to bring compatibility to Go 1.22

* Disabled container building
* No TLS Fingerprinting
* HTTP/2 H2C uses golang.org/x/net/http2/h2c
* html DOM walking uses custom function instead of iterator
* Pinned these packages to latest compatible releases:
 * github.com/go-jose/go-jose/v4 v4.0.5
 * golang.org/x/crypto v0.33.0
 * golang.org/x/net v0.37.0
 * golang.org/x/exp v0.0.0-20250210185358-939b2ce775ac
 * golang.org/x/text v0.22.0
 * google.golang.org/genproto/googleapis v0.0.0-20240826202546-f6391c0de4c7
This commit is contained in:
WeebDataHoarder
2025-04-15 19:35:34 +02:00
committed by WeebDataHoarder
parent b1f1e9a54f
commit 0ca8e277f9
11 changed files with 403 additions and 709 deletions

View File

@@ -433,7 +433,13 @@ func (d *RequestData) verifyChallengeStateCookie(cookie *http.Cookie) (TokenChal
}
func (d *RequestData) verifyChallengeState() (state TokenChallengeMap, err error) {
cookies := d.r.CookiesNamed(d.cookieName)
var cookies []*http.Cookie
for _, cookie := range d.r.Cookies() {
if cookie.Name == d.cookieName {
cookies = append(cookies, cookie)
}
}
if len(cookies) == 0 {
return nil, http.ErrNoCookie
}