socks5http

package
v1.2.2-beta.1 Latest Latest
Warning

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

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

Documentation

Overview

Package socks5http provides listening both socks5 and http at one port.

This package imports proxy/socks5 and proxy/http package.

为了避免混淆,本包不支持密码验证。你要是有这么高的密码要求 那你不妨用单独的协议,而不要用混合版。

实际上本包就是先经过http,然后如果不是http代理请求,就会回落到socks5.

所以你可以通过 设计回落的方式来达到 有密码 的 混合端口 的需求。

Index

Constants

View Source
const Name = "socks5http"

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	proxy.Base
	// contains filtered or unexported fields
}

func (*Server) Handshake

func (s *Server) Handshake(underlay net.Conn) (newconn net.Conn, msgConn netLayer.MsgConn, targetAddr netLayer.Addr, err error)

func (*Server) Name

func (*Server) Name() string

type ServerCreator

type ServerCreator struct{}

func (ServerCreator) NewServer

func (ServerCreator) NewServer(dc *proxy.ListenConf) (proxy.Server, error)

func (ServerCreator) NewServerFromURL

func (ServerCreator) NewServerFromURL(u *url.URL) (proxy.Server, error)

Jump to

Keyboard shortcuts

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