bind

package module
v0.0.0-...-3af4ba0 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2023 License: GPL-3.0 Imports: 20 Imported by: 0

README

docker run --rm -ti --name wg2 --privileged --net host shynome/libp2p-wg2 -key 1

问题

复现

# 启动节点A, 等待通告路由后再执行下一步
make run
# 在 VS Code 里按 F5 运行程序
# 会一直看到连接失败的信息

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrBindNoPubkey = errors.New("记得为 libp2p bind 设置Pubkey")
View Source
var ErrEndpointImpl = errors.New("endpoint is not wgortc.Endpoint")

Functions

This section is empty.

Types

type Bind

type Bind struct {
	Pubkey string
	// contains filtered or unexported fields
}

func New

func New() *Bind

func (*Bind) BatchSize

func (b *Bind) BatchSize() int

func (*Bind) Close

func (b *Bind) Close() error

func (*Bind) GetHost

func (b *Bind) GetHost() host.Host

func (*Bind) GetRoutingDiscovery

func (b *Bind) GetRoutingDiscovery() *drouting.RoutingDiscovery

func (*Bind) Open

func (b *Bind) Open(port uint16) (fns []conn.ReceiveFunc, actualPort uint16, err error)

func (*Bind) ParseEndpoint

func (b *Bind) ParseEndpoint(pubkey string) (conn.Endpoint, error)

func (*Bind) Send

func (b *Bind) Send(bufs [][]byte, ep conn.Endpoint) error

func (*Bind) SetMark

func (b *Bind) SetMark(mark uint32) error

Directories

Path Synopsis
cmd
wg2

Jump to

Keyboard shortcuts

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