mirror of
https://github.com/openp2p-cn/openp2p.git
synced 2025-09-28 13:32:10 +08:00
21 lines
285 B
Go
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)
|
|
}
|