mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 10:35:53 +02:00
dnsdist: correct xsk sample config
when use /etc/rc.d/init.d/dnsdist to start dnsdist with the sample xsk config, it results in startup error [0]. correct the xsk sample config. [0]: https://github.com/PowerDNS/pdns/discussions/15713 Signed-off-by: Vincent Li <vincent.mc.li@gmail.com>
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
xsk = newXsk({ifName="green0", NIC_queue_id=0, frameNums=65536, xskMapPath="/sys/fs/bpf/dnsdist/xsk_map"})
|
||||
|
||||
addLocal("0.0.0.0:53", {xskSocket=xsk})
|
||||
if not inConfigCheck() then
|
||||
xsk = newXsk({ifName='green0', NIC_queue_id=0, frameNums=65536, xskMapPath='/sys/fs/bpf/dnsdist/xsk_map'})
|
||||
addLocal("0.0.0.0:53", {xskSocket=xsk})
|
||||
else
|
||||
addLocal("0.0.0.0:53")
|
||||
end
|
||||
|
||||
newServer("8.8.8.8:53")
|
||||
newServer("1.1.1.1:53")
|
||||
|
||||
Reference in New Issue
Block a user