mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2024-11-16 11:42:43 +08:00
13 lines
327 B
Go
13 lines
327 B
Go
package constant
|
|
|
|
import "net"
|
|
|
|
type Tunnel interface {
|
|
// HandleTCPConn will handle a tcp connection blocking
|
|
HandleTCPConn(conn net.Conn, metadata *Metadata)
|
|
// HandleUDPPacket will handle a udp packet nonblocking
|
|
HandleUDPPacket(packet UDPPacket, metadata *Metadata)
|
|
// NatTable return nat table
|
|
NatTable() NatTable
|
|
}
|