Documentation
¶
Overview ¶
Package uotrouter wraps sing-box's UDP-over-TCP router so that route rules see the real destination of a UoT session rather than its magic address.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(router adapter.ConnectionRouterEx, logger logger.ContextLogger) adapter.ConnectionRouterEx
New returns a router that unwraps UoT connections before handing them to router. sing-box's uot.Router records the magic address in metadata.Domain after unwrapping, and domain rules prefer Domain over Destination.Fqdn, so without this every domain/domain_suffix rule would match the magic address instead of the host the client actually asked for.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.