socks

package
Version: v0.0.0-...-7923462 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

client struct

func NewClient

func NewClient(options Options, storage *storage.Client) *Client

func (*Client) Close

func (c *Client) Close() error

client closer

func (*Client) Init

func (c *Client) Init() error

client initialization

func (*Client) Serve

func (c *Client) Serve() error

listen and serve

type LdapAuthenticator

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

структура аутентификатора

func NewLdapAuthenticator

func NewLdapAuthenticator(storage *storage.Client) *LdapAuthenticator

func (LdapAuthenticator) Authenticate

func (a LdapAuthenticator) Authenticate(reader io.Reader, writer io.Writer) (*socks5.AuthContext, error)

Функция авторизации socks клиента

func (*LdapAuthenticator) Close

func (a *LdapAuthenticator) Close() error

клозер для закрытия корректного

func (LdapAuthenticator) GetCode

func (a LdapAuthenticator) GetCode() uint8

Возращаем socks клиенту ответ, что авторизация идет через пару логин:пасс

type Options

type Options struct {
	Listen    string
	SoftLimit uint64
}

client options

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL