Fix monitor

This commit is contained in:
世界 2022-07-14 18:53:42 +08:00
parent 6c2c28da9d
commit 9dc73c0bcc
No known key found for this signature in database
GPG key ID: CD109927C34A63C4
7 changed files with 244 additions and 104 deletions

View file

@ -2,8 +2,16 @@
package tun
import "os"
import (
"os"
func NewMonitor() (InterfaceMonitor, error) {
E "github.com/sagernet/sing/common/exceptions"
)
func NewNetworkUpdateMonitor(errorHandler E.Handler) (NetworkUpdateMonitor, error) {
return nil, os.ErrInvalid
}
func NewDefaultInterfaceMonitor(networkMonitor NetworkUpdateMonitor, callback DefaultInterfaceUpdateCallback) (DefaultInterfaceMonitor, error) {
return nil, os.ErrInvalid
}