summaryrefslogtreecommitdiff
path: root/edgemesh/pkg/dns/dns.go
diff options
context:
space:
mode:
Diffstat (limited to 'edgemesh/pkg/dns/dns.go')
-rw-r--r--edgemesh/pkg/dns/dns.go5
1 files changed, 1 insertions, 4 deletions
diff --git a/edgemesh/pkg/dns/dns.go b/edgemesh/pkg/dns/dns.go
index 2b77e0236..57d4bf00b 100644
--- a/edgemesh/pkg/dns/dns.go
+++ b/edgemesh/pkg/dns/dns.go
@@ -202,10 +202,7 @@ func parseDNSQuery(req []byte) (que *dnsQuestion, err error) {
// isAQuery judges if the dns pkg is a query
func (h *dnsHeader) isAQuery() bool {
- if h.flags&dnsQR != dnsQR {
- return true
- }
- return false
+ return h.flags&dnsQR != dnsQR
}
// getHeader gets dns pkg head