]> git.ipfire.org Git - thirdparty/haproxy.git/commit
DOC: update sample code for PROXY protocol
authorGlenn Strauss <gstrauss@gluelogic.com>
Wed, 5 Apr 2017 05:37:20 +0000 (01:37 -0400)
committerWilly Tarreau <w@1wt.eu>
Wed, 5 Apr 2017 06:41:17 +0000 (08:41 +0200)
commit91cc8081a2eff2e3d7d9f63411c2b6cf1e183923
tree14cc91baa30a650d5954b6f61ef048c4e3b5b820
parente5ae702222a02614612fa9d869bcfa761d29f9f0
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.
doc/proxy-protocol.txt