1
0
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:
源文雨
2026-03-01 15:02:22 +08:00
parent f9fe538dc9
commit 7f187d4f30

View File

@@ -10,6 +10,7 @@ import (
"math" "math"
"net" "net"
"net/netip" "net/netip"
"os"
"runtime" "runtime"
"sync" "sync"
"sync/atomic" "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)) dialer.SetDefaultTimeout(time.Second * time.Duration(timeout))
logrus.Infoln("Use ipv6 servers:", ip.IsIPv6Available) logrus.Infoln("Use ipv6 servers:", ip.IsIPv6Available)