parseProxyProtocolV2
function parseProxyProtocolV2(input, maximumBytes?): ProxyProtocolV2Address;Defined in: src/launcher/proxy-protocol-v2.ts:167
Parse one exact, bounded PROXY protocol v2 preamble.
Only the PROXY command with TCP over IPv4 or IPv6 is accepted. LOCAL, UNSPEC, UDP, Unix sockets, malformed address blocks, and malformed TLVs fail closed. Unknown TLVs are structurally validated and otherwise ignored.
Parameters
Section titled “Parameters”| Parameter | Type | Default value |
|---|---|---|
input |
Uint8Array |
undefined |
maximumBytes |
number |
DEFAULT_MAX_PROXY_V2_BYTES |
