chore: upgrade dependencies

This commit is contained in:
MetaCubeX
2022-04-20 01:31:33 +08:00
parent 5d36d8b139
commit 42d853a7e6
7 changed files with 19 additions and 23 deletions

View File

@ -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)
}
}