diff --git a/ex/q/q.go b/ex/q/q.go index 2794386d..0247e84e 100644 --- a/ex/q/q.go +++ b/ex/q/q.go @@ -269,7 +269,7 @@ func tsigKeyParse(s string) (algo, name, secret string, ok bool) { case 3: switch s1[0] { case "hmac-md5": - return "hmac-md5.sig-alg.reg.int.", s1[0], s1[1], true + return "hmac-md5.sig-alg.reg.int.", s1[1], s1[2], true case "hmac-sha1": return "hmac-sha1.", s1[1], s1[2], true case "hmac-sha256":