proxysocks

package
v0.7.5 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package proxysocks implements socks5 proxy that could be used by the Resource VM to reach outside world

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(f *fish.Fish, address string) error

Init will start the socks5 proxy server

Types

type ProxyAccess

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

ProxyAccess configuration to store context while processing the proxy request

func (*ProxyAccess) Allow

func (p *ProxyAccess) Allow(ctx context.Context, req *socks5.Request) (context.Context, bool)

Allow will be executed to allow or deny proxy request

type ResolverSkip

type ResolverSkip struct{}

ResolverSkip is needed to skip the resolving

func (ResolverSkip) Resolve

Resolve function makes skip possible

Jump to

Keyboard shortcuts

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