proxyproto

package
v0.0.0-...-b359386 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2020 License: Apache-2.0, MIT Imports: 7 Imported by: 0

Documentation

Overview

Package proxyproto implements a net.Listener supporting HAProxy PROXY protocol.

See http://www.haproxy.org/download/1.5/doc/proxy-protocol.txt for details.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Listener

type Listener struct {
	net.Listener
}

Listener wraps an underlying listener whose connections may be using the HAProxy PROXY Protocol (version 1). If the connection is using the protocol, RemoteAddr will return the correct client address.

func (Listener) Accept

func (p Listener) Accept() (net.Conn, error)

Accept waits for and returns the next connection to the listener.

Jump to

Keyboard shortcuts

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