Documentation
¶
Overview ¶
Package mieru provides Sing2's Mieru inbound — a drop-in replacement for the base fork's, adding the hot user updates the base cannot do (doc/13 T6). See inbound.go for why it exists.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewInbound ¶
func RegisterInbound ¶
RegisterInbound installs Sing2's Mieru inbound, replacing whatever is already registered for C.TypeMieru. Call it on the registry AFTER include.InboundRegistry().
Types ¶
type Inbound ¶
Inbound is a Mieru server inbound backed directly by mieru's protocol.Mux.
func (*Inbound) UpdateUsers ¶
UpdateUsers replaces the authoritative user set on the RUNNING server.
This is the whole point of the package: established connections keep working (mieru leaves existing TCPUnderlays and Sessions alone), new handshakes immediately see the new set, and removed users can no longer authenticate. Before Start it just records the set, which Start then installs.
It is also where a node that started with zero users finally comes up — see the deferred-start comment in Start.