File tree Expand file tree Collapse file tree 4 files changed +11
-3
lines changed Expand file tree Collapse file tree 4 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ require (
6
6
github.com/fsnotify/fsnotify v1.7.0
7
7
github.com/go-ole/go-ole v1.3.0
8
8
github.com/sagernet/go-tun2socks v1.16.12-0.20220818015926-16cb67876a61
9
- github.com/sagernet/gvisor v0.0.0-20230627031050-1ab0276e0dd2
9
+ github.com/sagernet/gvisor v0.0.0-20230930141345-5fef6f2e17ab
10
10
github.com/sagernet/netlink v0.0.0-20220905062125-8043b4a9aa97
11
11
github.com/sagernet/sing v0.2.15
12
12
github.com/scjalliance/comshim v0.0.0-20230315213746-5e51f40bd3b9
Original file line number Diff line number Diff line change @@ -6,8 +6,8 @@ github.com/google/btree v1.1.2 h1:xf4v41cLI2Z6FxbKm+8Bu+m8ifhj15JuZ9sa0jZCMUU=
6
6
github.com/google/btree v1.1.2 /go.mod h1:qOPhT0dTNdNzV6Z/lhRX0YXUafgPLFUh+gZMl761Gm4 =
7
7
github.com/sagernet/go-tun2socks v1.16.12-0.20220818015926-16cb67876a61 h1:5+m7c6AkmAylhauulqN/c5dnh8/KssrE9c93TQrXldA =
8
8
github.com/sagernet/go-tun2socks v1.16.12-0.20220818015926-16cb67876a61 /go.mod h1:QUQ4RRHD6hGGHdFMEtR8T2P6GS6R3D/CXKdaYHKKXms =
9
- github.com/sagernet/gvisor v0.0.0-20230627031050-1ab0276e0dd2 h1:dnkKrzapqtAwjTSWt6hdPrARORfoYvuUczynvRLrueo =
10
- github.com/sagernet/gvisor v0.0.0-20230627031050-1ab0276e0dd2 /go.mod h1:1JUiV7nGuf++YFm9eWZ8q2lrwHmhcUGzptMl/vL1+LA =
9
+ github.com/sagernet/gvisor v0.0.0-20230930141345-5fef6f2e17ab h1:u+xQoi/Yc6bNUvTfrDD6HhGRybn2lzrhf5vmS+wb4Ho =
10
+ github.com/sagernet/gvisor v0.0.0-20230930141345-5fef6f2e17ab /go.mod h1:3akUhSHSVtLuJaYcW5JPepUraBOW06Ibz2HKwaK5rOk =
11
11
github.com/sagernet/netlink v0.0.0-20220905062125-8043b4a9aa97 h1:iL5gZI3uFp0X6EslacyapiRz7LLSJyr4RajF/BhMVyE =
12
12
github.com/sagernet/netlink v0.0.0-20220905062125-8043b4a9aa97 /go.mod h1:xLnfdiJbSp8rNqYEdIW/6eDO4mVoogml14Bh2hSiFpM =
13
13
github.com/sagernet/sing v0.0.0-20220817130738-ce854cda8522 /go.mod h1:QVsS5L/ZA2Q5UhQwLrn0Trw+msNd/NPGEhBKR/ioWiY =
Original file line number Diff line number Diff line change @@ -105,6 +105,10 @@ func (e *DarwinEndpoint) ARPHardwareType() header.ARPHardwareType {
105
105
func (e * DarwinEndpoint ) AddHeader (buffer stack.PacketBufferPtr ) {
106
106
}
107
107
108
+ func (e * DarwinEndpoint ) ParseHeader (ptr stack.PacketBufferPtr ) bool {
109
+ return true
110
+ }
111
+
108
112
func (e * DarwinEndpoint ) WritePackets (packetBufferList stack.PacketBufferList ) (int , tcpip.Error ) {
109
113
var n int
110
114
for _ , packet := range packetBufferList .AsSlice () {
Original file line number Diff line number Diff line change @@ -102,6 +102,10 @@ func (e *WintunEndpoint) ARPHardwareType() header.ARPHardwareType {
102
102
func (e * WintunEndpoint ) AddHeader (buffer stack.PacketBufferPtr ) {
103
103
}
104
104
105
+ func (e * WintunEndpoint ) ParseHeader (ptr stack.PacketBufferPtr ) bool {
106
+ return true
107
+ }
108
+
105
109
func (e * WintunEndpoint ) WritePackets (packetBufferList stack.PacketBufferList ) (int , tcpip.Error ) {
106
110
var n int
107
111
for _ , packet := range packetBufferList .AsSlice () {
You can’t perform that action at this time.
0 commit comments