wip
This commit is contained in:
@@ -176,15 +176,10 @@ func handleRequest(ctx context.Context, w dns.ResponseWriter, query *dns.Msg) er
|
||||
// get connection
|
||||
conn := network.NewConnectionFromDNSRequest(ctx, q.FQDN, remoteAddr.IP, uint16(remoteAddr.Port))
|
||||
|
||||
if conn.Process() == nil {
|
||||
if conn.Process().Profile() == nil {
|
||||
tracer.Infof("nameserver: failed to find process for request %s, returning NXDOMAIN", conn)
|
||||
returnNXDomain(w, query)
|
||||
return nil
|
||||
}
|
||||
|
||||
if conn.Process().Profile() == nil {
|
||||
tracer.Infof("nameserver: process %s does not have a profile associated, returning NXDOMAIN", conn.Process())
|
||||
returnNXDomain(w, query)
|
||||
conn.Save() // save blocked request
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user