forked from MatsuriDayo/NekoBoxForAndroid
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinterface_monitor.go
48 lines (35 loc) · 975 Bytes
/
interface_monitor.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
package libcore
import (
"net/netip"
tun "github.com/sagernet/sing-tun"
"github.com/sagernet/sing/common/x/list"
)
// wtf
type interfaceMonitor struct {
}
func (i *interfaceMonitor) Start() error {
return nil
}
func (i *interfaceMonitor) Close() error {
return nil
}
func (i *interfaceMonitor) DefaultInterfaceName(destination netip.Addr) string {
return ""
}
func (i *interfaceMonitor) DefaultInterfaceIndex(destination netip.Addr) int {
return 0
}
func (i *interfaceMonitor) DefaultInterface(destination netip.Addr) (string, int) {
return "", 0
}
func (i *interfaceMonitor) OverrideAndroidVPN() bool {
return false
}
func (i *interfaceMonitor) AndroidVPNEnabled() bool {
return false
}
func (i *interfaceMonitor) RegisterCallback(callback tun.DefaultInterfaceUpdateCallback) *list.Element[tun.DefaultInterfaceUpdateCallback] {
return nil
}
func (i *interfaceMonitor) UnregisterCallback(element *list.Element[tun.DefaultInterfaceUpdateCallback]) {
}