Refactor wireguard & add tun support
This commit is contained in:
14
transport/wireguard/device.go
Normal file
14
transport/wireguard/device.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package wireguard
|
||||
|
||||
import (
|
||||
N "github.com/sagernet/sing/common/network"
|
||||
|
||||
"golang.zx2c4.com/wireguard/tun"
|
||||
)
|
||||
|
||||
type Device interface {
|
||||
tun.Device
|
||||
N.Dialer
|
||||
Start() error
|
||||
// NewEndpoint() (stack.LinkEndpoint, error)
|
||||
}
|
||||
Reference in New Issue
Block a user