aboutsummaryrefslogtreecommitdiffstats
path: root/ebin
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2018-11-26 11:52:27 +0100
committerLoïc Hoguin <[email protected]>2018-11-26 11:52:27 +0100
commit0d9ad0a8445e7ba6e8bf9591257fa4457dda8321 (patch)
tree456dc3ad8457c00c9870bc32f40195d4430104e0 /ebin
parent7423a7bb6dde5edc26283544956ae7387fa69688 (diff)
downloadranch-0d9ad0a8445e7ba6e8bf9591257fa4457dda8321.tar.gz
ranch-0d9ad0a8445e7ba6e8bf9591257fa4457dda8321.tar.bz2
ranch-0d9ad0a8445e7ba6e8bf9591257fa4457dda8321.zip
Use the correct CRC32 algorithm for the PROXY header
Turns out it wasn't the plain CRC32 algorithm that should have been used, whoops! The implementation was adapted from pseudo code from Thomas Cioppettini. I've renamed the PROXY header building option value for checksum from crc32 to crc32c and updated the documentation. There is no support for plain crc32 checksums.
Diffstat (limited to 'ebin')
-rw-r--r--ebin/ranch.app2
1 files changed, 1 insertions, 1 deletions
diff --git a/ebin/ranch.app b/ebin/ranch.app
index 82a4bbc..e001a94 100644
--- a/ebin/ranch.app
+++ b/ebin/ranch.app
@@ -1,7 +1,7 @@
{application, 'ranch', [
{description, "Socket acceptor pool for TCP protocols."},
{vsn, "1.7.0"},
- {modules, ['ranch','ranch_acceptor','ranch_acceptors_sup','ranch_app','ranch_conns_sup','ranch_listener_sup','ranch_protocol','ranch_proxy_header','ranch_server','ranch_ssl','ranch_sup','ranch_tcp','ranch_transport']},
+ {modules, ['ranch','ranch_acceptor','ranch_acceptors_sup','ranch_app','ranch_conns_sup','ranch_crc32c','ranch_listener_sup','ranch_protocol','ranch_proxy_header','ranch_server','ranch_ssl','ranch_sup','ranch_tcp','ranch_transport']},
{registered, [ranch_sup,ranch_server]},
{applications, [kernel,stdlib,ssl]},
{mod, {ranch_app, []}},