Added the stub parserbuilder work as well.

This commit is contained in:
2025-12-10 09:59:41 +02:00
parent f2e17f90b1
commit 24473557b3

View File

@@ -67,11 +67,11 @@ func (listener Listener) Accept() (net.Conn, error) {
// logger.Printf("Not trusted connection")
// }
// NOTE strictly a proxy protocol implementation without plain connections
// NOTE supports all the parserbuilders out of the box
headerParser := NewFallbackHeaderParserBuilder(
TextHeaderParserBuilder,
BinaryHeaderParserBuilder,
// StubHeaderParserBuilder,
StubHeaderParserBuilder,
).Build(logger)
return NewConn(rawConn, headerParser), nil