sing-tun/monitor.go
2022-07-13 20:51:53 +08:00

14 lines
280 B
Go

package tun
import E "github.com/sagernet/sing/common/exceptions"
var ErrNoRoute = E.New("no route to internet")
type InterfaceMonitor interface {
Start() error
Close() error
DefaultInterfaceName() string
DefaultInterfaceIndex() int
}
type InterfaceMonitorCallback func()