Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendInboundContext ¶
func AppendInboundContext(ctx context.Context, inboundContext *InboundContext) context.Context
Types ¶
type Func ¶
type Func func(ctx *InboundContext) N.Dialer
Func returns a dialer according to ctx. If match the rule, it will return a not-nil N.Dialer.
func UdpDnsPort ¶
UdpDnsPort matches destination is UDP DNS port (53).
type InboundContext ¶
func InboundContextFrom ¶
func InboundContextFrom(ctx context.Context) *InboundContext
Click to show internal directories.
Click to hide internal directories.