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 ¶
func (SpoofedConn) RemoteAddr ¶
func (sc SpoofedConn) RemoteAddr() net.Addr
Click to show internal directories.
Click to hide internal directories.