mtlsocks5

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultClientCACertPool

func DefaultClientCACertPool(certDirectoryPath string) (*x509.CertPool, error)

func DefaultForwarderTlsConfig

func DefaultForwarderTlsConfig(clientCertPath string, clientKeyPath string) (*tls.Config, error)

func DefaultServerTlsConfig

func DefaultServerTlsConfig(certPath string, keyPath string) (*tls.Config, error)

Types

type Forwarder

type Forwarder struct {
	ServerAddress string
}

func NewForwarder

func NewForwarder(serverAddress string) *Forwarder

func (*Forwarder) Serve

func (f *Forwarder) Serve(l net.Listener) error

type Server

type Server struct{}

func (*Server) Serve

func (s *Server) Serve(l net.Listener) error

Jump to

Keyboard shortcuts

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