Skip to content

Commit

Permalink
Merge pull request #109 from jelu/pcapthread
Browse files Browse the repository at this point in the history
pcapthread
  • Loading branch information
jelu committed Apr 6, 2018
2 parents 239b2ad + 8c99925 commit e2878f5
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/run.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
function run()
local input = require("dnsjit.input.pcap").new()
local pcapthread = pcall(function() require("dnsjit.input.pcapthread") end)
if not pcapthread then
pcapthread = require("dnsjit.input.pcap")
else
pcapthread = require("dnsjit.input.pcapthread")
end
local input = pcapthread.new()
set_log("input", input)
input:only_queries(true)

Expand Down

0 comments on commit e2878f5

Please sign in to comment.