mirror of
https://github.com/e1732a364fed/v2ray_simple.git
synced 2025-12-24 13:27:56 +08:00
修订代码;添加tun功能
This commit is contained in:
@@ -94,19 +94,9 @@ type Server interface {
|
||||
SelfListen() (is, tcp, udp bool)
|
||||
}
|
||||
|
||||
type TCPRequestInfo struct {
|
||||
net.Conn
|
||||
Target netLayer.Addr
|
||||
}
|
||||
|
||||
type UDPRequestInfo struct {
|
||||
netLayer.MsgConn
|
||||
Target netLayer.Addr
|
||||
}
|
||||
|
||||
type ListenerServer interface {
|
||||
Server
|
||||
StartListen(chan<- TCPRequestInfo, chan<- UDPRequestInfo) io.Closer
|
||||
StartListen(chan<- netLayer.TCPRequestInfo, chan<- netLayer.UDPRequestInfo) io.Closer
|
||||
}
|
||||
|
||||
type UserServer interface {
|
||||
|
||||
Reference in New Issue
Block a user