pkg

package
v0.0.0-...-5b39051 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateProxyProtocolHeader

func CreateProxyProtocolHeader(source net.Addr, dest net.Addr) ([]byte, error)

CreateProxyProtocolHeader for Minecraft proxy protocol "PROXY <TCP IPv4 or IPv6> <source IP> <destination IP> <source port> <destination port>" https://www.haproxy.org/download/1.8/doc/proxy-protocol.txt

func ProxyForever

func ProxyForever(client net.Conn, server net.Conn)

func SplitAddr

func SplitAddr(addr net.Addr) (string, uint16, error)

Types

type Router

type Router struct {
	// contains filtered or unexported fields
}

func NewRouter

func NewRouter(address string, resolver resolver.Resolver, proxyProtocol bool) Router

func (Router) Run

func (r Router) Run() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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