Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FreedomHandler ¶
type FreedomHandler struct {
Dialer i.Dialer
PacketListener i.PacketListener
Dns i.IPResolver
// contains filtered or unexported fields
}
func New ¶
func New(dialer i.Dialer, pl i.PacketListener, tag string, dns i.IPResolver) *FreedomHandler
func (*FreedomHandler) HandleFlow ¶
func (c *FreedomHandler) HandleFlow(ctx context.Context, dst net.Destination, rw buf.ReaderWriter) error
func (*FreedomHandler) HandlePacketConn ¶
func (c *FreedomHandler) HandlePacketConn(ctx context.Context, dst net.Destination, rw udp.PacketReaderWriter) error
func (*FreedomHandler) Tag ¶
func (c *FreedomHandler) Tag() string
Click to show internal directories.
Click to hide internal directories.