tor: fix go vet error in Go 1.24

non-constant format string in call to (*net/textproto.Conn).Cmd
This commit is contained in:
Boris Nagaev committed 2025-08-30 14:13:44 -03:00
1 parent 8533585d0b
commit 66c7e72c0d
1 file changed
+1 -1
+1 -1
View File
@@ -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
}