dynamic_pp

package module
v0.0.0-...-f286b4d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 9, 2024 License: MIT Imports: 7 Imported by: 0

README

dynamic-proxyproto-go

A Go library implementation of the PROXY protocol, supporting both version 1 and version 2.

This project is another implementation of github.com/pires/go-proxyproto.

Features

  • PROXY protocol version 1/2
  • TCP/UDP/UNIX
  • IPv4/IPv6
  • Dynamic PROXY protocol listener (accepts both PROXY and non-PROXY connections)

Benchmark

go test -bench=. -benchtime=2000x -gcflags='-m -m'

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	PPv1IdentifierLen = 6
	PPv1Identifier    = []byte{'\x50', '\x52', '\x4F', '\x58', '\x59', '\x20'}
	PPv2IdentifierLen = 12
	PPv2Identifier    = []byte{'\x0D', '\x0A', '\x0D', '\x0A', '\x00', '\x0D', '\x0A', '\x51', '\x55', '\x49', '\x54', '\x0A'}
)

Functions

This section is empty.

Types

type DynamicPPListener

type DynamicPPListener struct {
	net.Listener
}

func (*DynamicPPListener) Accept

func (l *DynamicPPListener) Accept() (net.Conn, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL