commit | 91cc8081a2eff2e3d7d9f63411c2b6cf1e183923 | [log] [tgz] |
---|---|---|
author | Glenn Strauss <gstrauss@gluelogic.com> | Wed Apr 05 01:37:20 2017 -0400 |
committer | Willy Tarreau <w@1wt.eu> | Wed Apr 05 08:41:17 2017 +0200 |
tree | 14cc91baa30a650d5954b6f61ef048c4e3b5b820 | |
parent | e5ae702222a02614612fa9d869bcfa761d29f9f0 [diff] |
DOC: update sample code for PROXY protocol lengths are in network byte order so use ntohs(hdr.v2.len) when calculating size of v2 header to recv() from head of stream.