aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2019-05-07 19:23:49 +0700
committerShulhan <ms@kilabit.info>2019-05-07 19:23:49 +0700
commitdb1d0639062259e83dbe68cc9f08a089aaa557f7 (patch)
tree820e5e9e4a42f21b57de6eba761a2644bf1e4890
parent34baa1a12407969b466b02f4bffba2348143c8f6 (diff)
downloadpakakeh.go-db1d0639062259e83dbe68cc9f08a089aaa557f7.tar.xz
dns: suppress linter warning on struct ServerOptions could be aligned
We can move the boolean field "DoHAllowInsecure" to the bottom of struct to make the struct aligned, but it will make the fields "unstructured". We prefer the options grouped by their usage.
-rw-r--r--lib/dns/serveroptions.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/dns/serveroptions.go b/lib/dns/serveroptions.go
index 51db5176..335eec94 100644
--- a/lib/dns/serveroptions.go
+++ b/lib/dns/serveroptions.go
@@ -18,6 +18,7 @@ import (
//
// ServerOptions describes options for running a DNS server.
//
+//nolint: maligned
type ServerOptions struct {
// IPAddress ip address to serve query, without port number.
// This field is optional, default to "0.0.0.0".