mirror of
https://github.com/Li4n0/revsuit.git
synced 2026-09-26 16:41:53 +08:00
Use golint to normalize the code (#1)
This commit is contained in:
@@ -11,13 +11,13 @@ func Accept(logger Logger) dns.MsgAcceptFunc {
|
||||
return func(dh dns.Header) dns.MsgAcceptAction {
|
||||
// check if request
|
||||
if dh.Bits&(1<<15) != 0 {
|
||||
log(logger, Ignored, nil, nil, fmt.Sprintf("not a request"))
|
||||
log(logger, Ignored, nil, nil, "not a request")
|
||||
return dns.MsgIgnore
|
||||
}
|
||||
|
||||
// check opcode
|
||||
if int(dh.Bits>>11)&0xF != dns.OpcodeQuery {
|
||||
log(logger, Ignored, nil, nil, fmt.Sprintf("not a query"))
|
||||
log(logger, Ignored, nil, nil, "not a query")
|
||||
return dns.MsgIgnore
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user