mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2024-12-22 23:57:26 +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
|
|
}
|