proxy

package
v0.0.0-...-0f1ebe4 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

func NewServer

func NewServer(config *models.Config,
	tls bool,
	authMethods []models.AuthMethod,
	allowedSubnets *models.SubnetChecker,
	blockedSubnets *models.SubnetChecker,
	allowedRemoteSubnets *models.SubnetChecker) (*Server, error)

func (*Server) Close

func (s *Server) Close() error

func (*Server) FreeTCPPort

func (s *Server) FreeTCPPort(port int)

func (*Server) FreeUDPPort

func (s *Server) FreeUDPPort(port int)

func (*Server) GetTCPPort

func (s *Server) GetTCPPort() (int, error)

func (*Server) GetUDPPort

func (s *Server) GetUDPPort() (int, error)

func (*Server) Init

func (s *Server) Init() error

func (*Server) Start

func (s *Server) Start() error

Jump to

Keyboard shortcuts

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