summaryrefslogtreecommitdiff
path: root/dns.go
diff options
context:
space:
mode:
Diffstat (limited to 'dns.go')
-rw-r--r--dns.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/dns.go b/dns.go
index ff3a109..e4128c5 100644
--- a/dns.go
+++ b/dns.go
@@ -1,18 +1,19 @@
package main
import (
- "github.com/miekg/dns"
"fmt"
- "time"
+ "github.com/miekg/dns"
"log"
"net"
+ "time"
)
const TSIG_FUDGE_SECONDS = 300
+
type TSIGAlgorithm string
func (t *TSIGAlgorithm) UnmarshalFlag(value string) error {
- switch (value) {
+ switch value {
case "hmac-md5", "md5":
*t = dns.HmacMD5
case "hmac-sha1", "sha1":