Restore PROXY v2 support
This commit is contained in:
+2
-2
@@ -289,7 +289,7 @@ private:
|
|||||||
ProxyParser *pp = (ProxyParser *) reserved;
|
ProxyParser *pp = (ProxyParser *) reserved;
|
||||||
|
|
||||||
/* Parse PROXY protocol */
|
/* Parse PROXY protocol */
|
||||||
auto [done, offset] = pp->parse({start, (size_t) (end - postPaddedBuffer)});
|
auto [done, offset] = pp->parse({postPaddedBuffer, (size_t) (end - postPaddedBuffer)});
|
||||||
if (!done) {
|
if (!done) {
|
||||||
/* We do not reset the ProxyParser (on filure) since it is tied to this
|
/* We do not reset the ProxyParser (on filure) since it is tied to this
|
||||||
* connection, which is really only supposed to ever get one PROXY frame
|
* connection, which is really only supposed to ever get one PROXY frame
|
||||||
@@ -297,7 +297,7 @@ private:
|
|||||||
return 0;
|
return 0;
|
||||||
} else {
|
} else {
|
||||||
/* We have consumed this data so skip it */
|
/* We have consumed this data so skip it */
|
||||||
start += offset;
|
postPaddedBuffer += offset;
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
/* This one is unused */
|
/* This one is unused */
|
||||||
|
|||||||
Reference in New Issue
Block a user