Skip to content

Commit

Permalink
revert some changes
Browse files Browse the repository at this point in the history
  • Loading branch information
hiddify-com committed Feb 14, 2024
1 parent ee4b146 commit 973eded
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions transport/wireguard/device_stack.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,9 +192,9 @@ func (w *StackDevice) Read(bufs [][]byte, sizes []int, offset int) (count int, e

func (w *StackDevice) Write(bufs [][]byte, offset int) (count int, err error) {
for _, b := range bufs {
if len(b) <= offset {
continue
}
// if len(b) <= offset {
// continue
// }
b = b[offset:]
if len(b) == 0 {
continue
Expand Down

0 comments on commit 973eded

Please sign in to comment.