hsocks

package module
v0.0.0-...-8920967 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2023 License: AGPL-3.0 Imports: 10 Imported by: 0

README

https-socks

https-socks implements a simple socks-over-https proxy server.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer

func NewServer()

Types

type ClientConfig

type ClientConfig struct {
	Common struct {
		Password string `toml:"password"`
		LogPath  string `toml:"log_path"`
	} `toml:"common"`

	Client struct {
		PreConns int      `toml:"pre_conns"`
		Timeout  duration `toml:"timeout"`
	} `toml:"client"`

	Server struct {
		Network string `toml:"network"`
		Address string `toml:"address"`
		RootCA  string `toml:"root_ca"`
	} `toml:"server"`

	Front struct {
		Mode     string `toml:"mode"`
		Network  string `toml:"network"`
		Address  string `toml:"address"`
		Username string `toml:"username"`
		Password string `toml:"password"`
	} `toml:"front"`
}

ClientConfig contains configurations for proxy client.

type Server

type Server struct {
}

type ServerConfig

type ServerConfig struct {
	Common struct {
		PassHash string `toml:"pwd_hash"`
		LogPath  string `toml:"log_path"`
	} `toml:"common"`

	Server struct {
		Network  string   `toml:"network"`
		Address  string   `toml:"address"`
		MaxConns int      `toml:"max_conns"`
		Timeout  duration `toml:"timeout"`
	} `toml:"server"`

	TLS struct {
		ServerCert string `toml:"server_cert"`
		ServerKey  string `toml:"server_key"`
	} `toml:"tls"`
}

ServerConfig contains configurations for proxy server.

Jump to

Keyboard shortcuts

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