Documentation ¶
Index ¶
- Variables
- func CalculateInterfaceName(name string) (tunName string)
- type Listener
- type ListenerHandler
- func (h *ListenerHandler) NewConnection(ctx context.Context, conn net.Conn, metadata M.Metadata) error
- func (h *ListenerHandler) NewPacketConnection(ctx context.Context, conn network.PacketConn, metadata M.Metadata) error
- func (h *ListenerHandler) ShouldHijackDns(targetAddr netip.AddrPort) bool
- func (h *ListenerHandler) TypeMutation(typ C.Type) *ListenerHandler
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultInterfaceFinder control.InterfaceFinder = (*defaultInterfaceFinder)(nil)
View Source
var EnforceBindInterface = false
View Source
var InterfaceName = "Meta"
Functions ¶
func CalculateInterfaceName ¶
Types ¶
type Listener ¶
type Listener struct {
// contains filtered or unexported fields
}
func (*Listener) FlushDefaultInterface ¶
func (l *Listener) FlushDefaultInterface()
type ListenerHandler ¶
type ListenerHandler struct { *sing.ListenerHandler DnsAdds []netip.AddrPort }
func (*ListenerHandler) NewConnection ¶
func (*ListenerHandler) NewPacketConnection ¶
func (h *ListenerHandler) NewPacketConnection(ctx context.Context, conn network.PacketConn, metadata M.Metadata) error
func (*ListenerHandler) ShouldHijackDns ¶
func (h *ListenerHandler) ShouldHijackDns(targetAddr netip.AddrPort) bool
func (*ListenerHandler) TypeMutation ¶ added in v1.18.6
func (h *ListenerHandler) TypeMutation(typ C.Type) *ListenerHandler
Click to show internal directories.
Click to hide internal directories.