netwraputil

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SpoofRemoteAddress

func SpoofRemoteAddress(pubKey []byte) netwrap.ConnWrapper

SpoofRemoteAddress wraps the connection with the passed reference as if it was a secret-handshake connection warning: should only be used where auth is established otherwise, like for testing or local client access over unixsock

Types

type SpoofedConn

type SpoofedConn struct {
	net.Conn
	// contains filtered or unexported fields
}

func (SpoofedConn) RemoteAddr

func (sc SpoofedConn) RemoteAddr() net.Addr

Jump to

Keyboard shortcuts

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