mirror of
https://github.com/e1732a364fed/v2ray_simple.git
synced 2025-10-13 20:43:41 +08:00
实现tproxy,添加tproxy示例文件.未经测试,很可能有问题.
This commit is contained in:
@@ -13,7 +13,6 @@ import (
|
||||
"io"
|
||||
"log"
|
||||
"net"
|
||||
"os"
|
||||
"reflect"
|
||||
"syscall"
|
||||
|
||||
@@ -129,19 +128,3 @@ func (c *ReadWrapper) WriteBuffers(buffers [][]byte) (int64, error) {
|
||||
return int64(n), e
|
||||
|
||||
}
|
||||
|
||||
//用于 listen和 dial 配置一些底层参数.
|
||||
type Sockopt struct {
|
||||
TProxy bool `toml:"tproxy"`
|
||||
Somark int `toml:"mark"`
|
||||
}
|
||||
|
||||
type ListenerWithFile interface {
|
||||
net.Listener
|
||||
File() (f *os.File, err error)
|
||||
}
|
||||
|
||||
type ConnWithFile interface {
|
||||
net.Conn
|
||||
File() (f *os.File, err error)
|
||||
}
|
||||
|
Reference in New Issue
Block a user