Releases: pires/go-proxyproto
Releases · pires/go-proxyproto
v0.11.0
🚨 ATTENTION 🚨 #165 changes how header parsing errors surface to the consumer code. We highly recommend relying on errors.Is and errors.As when handling errors produced by this library.
What's Changed
- http2: mimic stdlib http2 when connContext returns nil by @pires in #164
- header: wrap read buffer errors instead of dropping by @pires in #165
Full Changelog: v0.10.0...v0.11.0
v0.10.0
What's Changed
- ci,lint: explicit linter configuration and subsequent fixes by @pires in #141
- Fix nil panic when TestParseV2Invalid fails by @emersion in #143
- Run gofmt by @emersion in #146
- ci: fix duplicated checks by @pires in #151
- protocol: readHeader() respects previously called conn.SetReadDeadline(t) by @pires in #152
- protocol: test LOCAL uses underlying addresses by @pires in #153
- Use same bufio.Reader size for NewConn and for tests by @emersion in #154
- Bump maximum header size to 4KiB, alternative version by @emersion in #155
- protocol: don't buffer underlying conn reads after parsing header by @pires in #148
- readme: fix coveralls badge by @pires in #159
- v2: drop unnecessary io.LimitReader in parseVersion2 by @emersion in #158
- http2: return http.ErrServerClosed in Server.Serve by @emersion in #160
- protocol: allow per-listener and per-conn custom read buffer size by @pires in #163
Big shout-out to @clementnuss @bollenberger and @AlexanderYastrebov for contributions that didn't get entirely merged but their critique was key to get buffer reading bug fixes and improvements out.
Full Changelog: v0.9.2...v0.10.0
v0.9.2
What's Changed
Full Changelog: v0.9.1...v0.9.2
v0.9.1
v0.9.0
What's Changed
- ci: use local Go toolchain and downgrade Go version by @gustavosbarreto in #127
- Add TLS group and sig scheme TLVs by @emersion in #133
- Add TrustProxyHeaderFrom policy function by @gearnode in #132
- ci: bump to Go 1.24 by @pires in #134
- policy: PolicyFunc is deprecated in favor of ConnPolicyFunc by @pires in #135
New Contributors
- @gustavosbarreto made their first contribution in #127
- @gearnode made their first contribution in #132
Full Changelog: v0.8.1...v0.9.0
v0.8.1
What's Changed
- Fix Go Documentation of Default timeout by @TheM1984 in #121
- build(deps): bump golang.org/x/net from 0.23.0 to 0.36.0 by @dependabot in #122
- bump Go and golang.org/x/net by @pires in #125
New Contributors
Full Changelog: v0.8.0...v0.8.1
v0.8.0
What's Changed
- Add an helper for proxied HTTP/2 by @emersion in #102
- build(deps): bump golang.org/x/net from 0.12.0 to 0.17.0 by @dependabot in #103
- build(deps): bump golang.org/x/net from 0.17.0 to 0.23.0 by @dependabot in #109
- Add support for validating the downstream ip of the connection by @kmala in #108
- add SetReadHeaderTimeout opt for NewConn by @pieropio in #113
- header.go prevent otherHeader.rawTLVs being nil by @hilbix in #104
- protocol: avoid double buffering by @mmatczuk in #116
- lint: replace math/rand.Read with crypto/rand.Read by @pires in #118
- Protocol: Keep listener listening if we don't trust the upstream address by @peteski22 in #110
New Contributors
- @dependabot made their first contribution in #103
- @kmala made their first contribution in #108
- @pieropio made their first contribution in #113
- @hilbix made their first contribution in #104
- @mmatczuk made their first contribution in #116
- @peteski22 made their first contribution in #110
Full Changelog: v0.7.0...v0.8.0
v0.7.0
What's Changed
- Bump DefaultReadHeaderTimeout to 10s by @emersion in #84
- Add method to get SSL cipher from the SSL TLV by @dgl in #91
- add support for parsing IPv4-mapped IPv6 addresses by @drakkan in #97
- Add SKIP policy to not expect a PROXY header by @kayrus in #96
- Revisit CI by @pires in #99
New Contributors
Full Changelog: v0.6.2...v0.7.0
v0.6.2
v0.6.1
Bugfixes
- Critical: Reset read deadline after parsing header (#76) thanks a ton to @antoniomika and a bunch of other folks who contributed to finding the solution
Improvements
- Introduce TLV parsing for Google Cloud extensions (#81) thanks to @igor-kupczynski