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 originOptionally, if you're tracking this instead of a fork:
git branch -u origin/main mainBreaking changes
- Replaced v1 throwing
ErrCantReadProtocolVersionAndCommandwith:ErrLineMustEndWithCrlfwhen the issue is the line doesn't end with\r\n, which is required as per spec, andErrCantReadAddressFamilyAndProtocolwhen inet family and transport protocol are notTCP4,TCP6orUNKNOWN, 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
UNSPECbut only when command isLOCAL(#61)
For more information, read #60. Thank you to @bohanyang for the detailed description.