mirror of
https://github.com/xjasonlyu/tun2socks.git
synced 2025-11-03 10:51:03 +08:00
Refactor: use core/adapter
This commit is contained in:
16
core/adapter/adapter.go
Normal file
16
core/adapter/adapter.go
Normal file
@@ -0,0 +1,16 @@
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user