mirror of
https://github.com/fumiama/dnskip.git
synced 2026-06-05 00:32:41 +08:00
feat: add more log
This commit is contained in:
8
main.go
8
main.go
@@ -10,6 +10,7 @@ import (
|
||||
"math"
|
||||
"net"
|
||||
"net/netip"
|
||||
"os"
|
||||
"runtime"
|
||||
"sync"
|
||||
"sync/atomic"
|
||||
@@ -88,6 +89,13 @@ func main() {
|
||||
}
|
||||
}()
|
||||
|
||||
pwd, err := os.Getwd()
|
||||
if err != nil {
|
||||
logrus.Fatal("Getwd err:", err)
|
||||
}
|
||||
|
||||
logrus.Infoln("Running at dir", pwd)
|
||||
|
||||
dialer.SetDefaultTimeout(time.Second * time.Duration(timeout))
|
||||
|
||||
logrus.Infoln("Use ipv6 servers:", ip.IsIPv6Available)
|
||||
|
||||
Reference in New Issue
Block a user