From 66c7e72c0d772a85c9a222dbd4c5f38c2a511b0b Mon Sep 17 00:00:00 2001 From: Boris Nagaev Date: Sun, 17 Aug 2025 21:21:21 -0300 Subject: [PATCH] tor: fix go vet error in Go 1.24 non-constant format string in call to (*net/textproto.Conn).Cmd --- tor/controller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tor/controller.go b/tor/controller.go index f997a8697..6facef892 100644 --- a/tor/controller.go +++ b/tor/controller.go @@ -250,7 +250,7 @@ func (c *Controller) Reconnect() error { // sendCommand sends a command to the Tor server and returns its response, as a // single space-delimited string, and code. func (c *Controller) sendCommand(command string) (int, string, error) { - id, err := c.conn.Cmd(command) + id, err := c.conn.Cmd("%v", command) if err != nil { return 0, "", err }