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 (
66 github.com/fsnotify/fsnotify v1.7.0
77 github.com/go-ole/go-ole v1.3.0
88 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
1010 github.com/sagernet/netlink v0.0.0-20220905062125-8043b4a9aa97
1111 github.com/sagernet/sing v0.2.15
1212 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=
66github.com/google/btree v1.1.2 /go.mod h1:qOPhT0dTNdNzV6Z/lhRX0YXUafgPLFUh+gZMl761Gm4 =
77github.com/sagernet/go-tun2socks v1.16.12-0.20220818015926-16cb67876a61 h1:5+m7c6AkmAylhauulqN/c5dnh8/KssrE9c93TQrXldA =
88github.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 =
1111github.com/sagernet/netlink v0.0.0-20220905062125-8043b4a9aa97 h1:iL5gZI3uFp0X6EslacyapiRz7LLSJyr4RajF/BhMVyE =
1212github.com/sagernet/netlink v0.0.0-20220905062125-8043b4a9aa97 /go.mod h1:xLnfdiJbSp8rNqYEdIW/6eDO4mVoogml14Bh2hSiFpM =
1313github.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 {
105105func (e * DarwinEndpoint ) AddHeader (buffer stack.PacketBufferPtr ) {
106106}
107107
108+ func (e * DarwinEndpoint ) ParseHeader (ptr stack.PacketBufferPtr ) bool {
109+ return true
110+ }
111+
108112func (e * DarwinEndpoint ) WritePackets (packetBufferList stack.PacketBufferList ) (int , tcpip.Error ) {
109113 var n int
110114 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 {
102102func (e * WintunEndpoint ) AddHeader (buffer stack.PacketBufferPtr ) {
103103}
104104
105+ func (e * WintunEndpoint ) ParseHeader (ptr stack.PacketBufferPtr ) bool {
106+ return true
107+ }
108+
105109func (e * WintunEndpoint ) WritePackets (packetBufferList stack.PacketBufferList ) (int , tcpip.Error ) {
106110 var n int
107111 for _ , packet := range packetBufferList .AsSlice () {
You can’t perform that action at this time.
0 commit comments