package
Version:
v0.0.0-...-3139442
Opens a new window with list of versions in this module.
Published: Apr 14, 2022
License: AGPL-3.0
Opens a new window with license information.
Imports: 14
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func NewCIDRRule(cidrs []string) *cidrRule
func NewDomainRule(domains []string) *domainRule
type Router interface {
DialTcp(targetAddr string) (conn net.Conn, err error, outName, realAddr string)
HandleTcpStream(protocolName string, conn net.Conn, clientAddr, targetAddr string)
SendUdpPacket(protocolName string, clientAddr, targetAddr string, data []byte, receiver UdpPacketReceiver)
}
type UdpPacketReceiver func(remoteAddr net.Addr, data []byte)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.