mirror of
https://github.com/SagerNet/sing-box.git
synced 2024-11-14 04:43:17 +00:00
17 lines
486 B
Go
17 lines
486 B
Go
//go:build linux || windows
|
|
|
|
package route
|
|
|
|
import (
|
|
"github.com/sagernet/sing-tun"
|
|
E "github.com/sagernet/sing/common/exceptions"
|
|
)
|
|
|
|
func NewNetworkUpdateMonitor(errorHandler E.Handler) (NetworkUpdateMonitor, error) {
|
|
return tun.NewNetworkUpdateMonitor(errorHandler)
|
|
}
|
|
|
|
func NewDefaultInterfaceMonitor(networkMonitor NetworkUpdateMonitor, callback DefaultInterfaceUpdateCallback) (DefaultInterfaceMonitor, error) {
|
|
return tun.NewDefaultInterfaceMonitor(networkMonitor, callback)
|
|
}
|