go_toa

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

README

go_toa

借助fnqueue,拦截IP包,为连接的第一个ack添加toa,从而携带原始客户端IP和端口。

toa可以参考:toa原理

使用例子参考:例子

image

编译及依赖:(DockerFile)[https://github.com/619561504/plow/blob/toa/Dockerfile]

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close

func Close() error

func Dial

func Dial(addr string, clientIp string, clientPort int) (net.Conn, error)

func Run

func Run(opts ...Option) error

Types

type Option

type Option func(options *options)

func WithMark

func WithMark(mark int) Option

func WithMaxGoroutines

func WithMaxGoroutines(maxGoroutines int) Option

func WithMaxRetry

func WithMaxRetry(maxRetry int) Option

Jump to

Keyboard shortcuts

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