diff --git a/main.go b/main.go index 2644a6c..e169a37 100644 --- a/main.go +++ b/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)