v0.4.0
Announcement
First, the master
branch has been renamed to main
. Assuming your local copy has this repo as remote origin
, execute the following commands:
git branch -m master main
git fetch origin
Optionally, if you're tracking this instead of a fork:
git branch -u origin/main main
Breaking changes
- Replaced v1 throwing
ErrCantReadProtocolVersionAndCommand
with:ErrLineMustEndWithCrlf
when the issue is the line doesn't end with\r\n
, which is required as per spec, andErrCantReadAddressFamilyAndProtocol
when inet family and transport protocol are notTCP4
,TCP6
orUNKNOWN
, as per spec.
Also, if notUNKNOWN
, addresses information is required.
Improvements
- Support parsing v1
PROXY UNKNOWN
(#61)
This has been quietly introduced in the spec while we were not watching. - Support v2 inet family and transport protocol
UNSPEC
but only when command isLOCAL
(#61)
For more information, read #60. Thank you to @bohanyang for the detailed description.