mirror of
https://github.com/xjasonlyu/tun2socks.git
synced 2025-10-06 17:26:58 +08:00
17 lines
224 B
Go
17 lines
224 B
Go
package adapter
|
|
|
|
import (
|
|
"net"
|
|
)
|
|
|
|
// TCPConn implements the net.Conn interface.
|
|
type TCPConn interface {
|
|
net.Conn
|
|
}
|
|
|
|
// UDPConn implements net.Conn and net.PacketConn.
|
|
type UDPConn interface {
|
|
net.Conn
|
|
net.PacketConn
|
|
}
|