Files
openp2p/core/optun.go
TenderIronh 9c3d557f5d LF
2024-07-26 22:27:24 +08:00

21 lines
285 B
Go

package openp2p
import (
"github.com/openp2p-cn/wireguard-go/tun"
)
var AndroidSDWANConfig chan []byte
type optun struct {
tunName string
dev tun.Device
}
func (t *optun) Stop() error {
t.dev.Close()
return nil
}
func init() {
AndroidSDWANConfig = make(chan []byte, 1)
}