change tun from water to wireguard

This commit is contained in:
ginuerzh
2022-08-20 19:41:50 +08:00
parent 8098e9f976
commit b24a15ea34
9 changed files with 99 additions and 46 deletions

View File

@ -2,15 +2,15 @@ package tun
import (
"errors"
"io"
"net"
"time"
mdata "github.com/go-gost/core/metadata"
"github.com/songgao/water"
)
type conn struct {
ifce *water.Interface
ifce io.ReadWriteCloser
laddr net.Addr
raddr net.Addr
}