Add fast network table lookup

This commit is contained in:
Daniel
2021-02-23 13:10:08 +01:00
parent 6c0df1155e
commit df7afe985e
4 changed files with 32 additions and 17 deletions

View File

@@ -78,7 +78,7 @@ func takeover(resolverIP net.IP, resolverPort uint16) (int, error) {
SrcPort: 0, // do not record direction
Dst: resolverIP,
DstPort: resolverPort,
})
}, true)
if err != nil {
// there may be nothing listening on :53
return 0, nil