summaryrefslogtreecommitdiff
path: root/dns.go
diff options
context:
space:
mode:
authorTero Marttila <[email protected]>2016-06-19 22:50:21 +0300
committerTero Marttila <[email protected]>2016-06-19 22:50:21 +0300
commit6acc13e01076dd042f22d5c156b586b57d80523d (patch)
tree45558a6b0f84c026bd6f46aaf7a529bfd3769b78 /dns.go
parent89f642d6ff4feff12dba741b08c13b8dc82f8fbc (diff)
go fmt
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":