diff options
| author | Tero Marttila <[email protected]> | 2016-06-19 22:50:21 +0300 |
|---|---|---|
| committer | Tero Marttila <[email protected]> | 2016-06-19 22:50:21 +0300 |
| commit | 6acc13e01076dd042f22d5c156b586b57d80523d (patch) | |
| tree | 45558a6b0f84c026bd6f46aaf7a529bfd3769b78 /dns.go | |
| parent | 89f642d6ff4feff12dba741b08c13b8dc82f8fbc (diff) | |
go fmt
Diffstat (limited to 'dns.go')
| -rw-r--r-- | dns.go | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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": |
