proxy

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2022 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AgentCounter = 0
View Source
var ListenerCounter = 0

Functions

This section is empty.

Types

type Controller

type Controller struct {
	Network    string
	Connection chan net.Conn

	ControllerConfig
	// contains filtered or unexported fields
}

func New

func New(config ControllerConfig) Controller

func (*Controller) ListenAndServe

func (c *Controller) ListenAndServe()

func (*Controller) WaitForReady

func (c *Controller) WaitForReady()

type ControllerConfig

type ControllerConfig struct {
	EnableAutocert  bool
	EnableSelfcert  bool
	Address         string
	Certfile        string
	Keyfile         string
	DomainWhitelist []string
}

type LigoloAgent

type LigoloAgent struct {
	Id        int
	Name      string
	Network   []protocol.NetInterface
	Session   *yamux.Session
	CloseChan chan bool
}

func NewAgent

func NewAgent(session *yamux.Session) (LigoloAgent, error)

func (*LigoloAgent) String

func (la *LigoloAgent) String() string

type Listener

type Listener struct {
	Agent        LigoloAgent
	Network      string
	ListenerAddr string
	RedirectAddr string

	Session    net.Conn
	ListenerID int32
}

Directories

Path Synopsis
tun

Jump to

Keyboard shortcuts

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