Documentation
¶
Overview ¶
Verbatim copy of sing-box protocol/tuic/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: none, other than the package clause.
Index ¶
- func NewInbound(ctx context.Context, router adapter.Router, logger log.ContextLogger, ...) (adapter.Inbound, error)
- func RegisterInbound(registry *inbound.Registry)
- type Inbound
- func (h *Inbound) Close() error
- func (h *Inbound) NewConnectionEx(ctx context.Context, conn net.Conn, source M.Socksaddr, ...)
- func (h *Inbound) NewPacketConnectionEx(ctx context.Context, conn N.PacketConn, source M.Socksaddr, ...)
- func (h *Inbound) Start(stage adapter.StartStage) error
- func (h *Inbound) UpdateUsers(users []option.TUICUser) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewInbound ¶
func RegisterInbound ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.