chore: upgrade dependencies
This commit is contained in:
@ -3,6 +3,7 @@ package commons
|
||||
import (
|
||||
"fmt"
|
||||
"net"
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
"github.com/Dreamacro/clash/component/dialer"
|
||||
@ -10,9 +11,9 @@ import (
|
||||
)
|
||||
|
||||
var (
|
||||
defaultRoutes = []string{"1.0.0.0/8", "2.0.0.0/7", "4.0.0.0/6", "8.0.0.0/5", "16.0.0.0/4", "32.0.0.0/3", "64.0.0.0/2", "128.0.0.0/1"}
|
||||
|
||||
defaultInterfaceMonitorDuration = 20 * time.Second
|
||||
defaultRoutes = []string{"1.0.0.0/8", "2.0.0.0/7", "4.0.0.0/6", "8.0.0.0/5", "16.0.0.0/4", "32.0.0.0/3", "64.0.0.0/2", "128.0.0.0/1"}
|
||||
mux sync.Mutex
|
||||
defaultInterfaceMonitorDuration = 3 * time.Second
|
||||
)
|
||||
|
||||
func ipv4MaskString(bits int) string {
|
||||
@ -46,7 +47,6 @@ func DefaultInterfaceChangeMonitor(cb func(ifName string)) {
|
||||
if cb != nil {
|
||||
cb(interfaceName)
|
||||
}
|
||||
|
||||
log.Warnln("[TUN] default interface changed by monitor, %s => %s", old, interfaceName)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user