vmess

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2026 License: GPL-3.0 Imports: 24 Imported by: 0

Documentation

Overview

Verbatim copy of sing-box protocol/vmess/inbound.go, moved into this module so the panel can reach the unexported `service`/`users` fields that the sing-box Inbound type does not expose. That access is what lets core.UpdateInboundUsers swap an inbound's user table in place instead of tearing the listener down (see core/inbound_users.go).

UPGRADING sing-box: re-copy this file from the new tag and re-apply the change below. Nothing here will fail to compile if you forget, it will just silently keep running the old implementation.

Local change vs sing-box: the sing-vmess import is given an explicit `vmess` alias, since this file's own package is also called vmess.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewInbound

func NewInbound(ctx context.Context, router adapter.Router, logger log.ContextLogger, tag string, options option.VMessInboundOptions) (adapter.Inbound, error)

func RegisterInbound

func RegisterInbound(registry *inbound.Registry)

Types

type Inbound

type Inbound struct {
	inbound.Adapter
	// contains filtered or unexported fields
}

func (*Inbound) Close

func (h *Inbound) Close() error

func (*Inbound) NewConnectionEx

func (h *Inbound) NewConnectionEx(ctx context.Context, conn net.Conn, metadata adapter.InboundContext, onClose N.CloseHandlerFunc)

func (*Inbound) Start

func (h *Inbound) Start(stage adapter.StartStage) error

func (*Inbound) UpdateUsers

func (h *Inbound) UpdateUsers(users []option.VMessUser) error

Jump to

Keyboard shortcuts

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