From cff146303605372c7c2e50f3cd9fa8e8ee5932bb Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Mon, 28 Nov 2022 16:13:23 +0300 Subject: [PATCH] Hard-code User-Agents --- cmd/btrtrc/main.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/btrtrc/main.go b/cmd/btrtrc/main.go index 1f78e9e8..70bc8c90 100644 --- a/cmd/btrtrc/main.go +++ b/cmd/btrtrc/main.go @@ -36,6 +36,8 @@ func main() { cc.NoDefaultPortForwarding = true cc.DisableWebtorrent = true cc.Logger = analog.Default.WithNames("main", "client") + cc.HTTPUserAgent = "btrtrc/0.1.0" + cc.ExtendedHandshakeClientVersion = "btrtrc/0.1.0" cc.DefaultStorage = storage.NewFileWithCompletion(".", NewBFPieceCompletion()) if *verify { doVerify(cc, flag.Args()) -- 2.48.1