mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-02-20 23:47:21 -05:00
19 lines
285 B
Go
19 lines
285 B
Go
package tun
|
|
|
|
import (
|
|
tun_net "github.com/v2fly/v2ray-core/v5/app/tun/net"
|
|
)
|
|
|
|
var (
|
|
tcpQueue = make(chan tun_net.TCPConn)
|
|
udpQueue = make(chan tun_net.UDPConn)
|
|
)
|
|
|
|
func handleTCP(conn tun_net.TCPConn) {
|
|
tcpQueue <- conn
|
|
}
|
|
|
|
func handleUDP(conn tun_net.UDPConn) {
|
|
udpQueue <- conn
|
|
}
|