Fix nfqueue fallback when kernel module unavailable

This commit is contained in:
世界 2025-12-31 02:18:51 +08:00
parent a850c4f8a1
commit a5db80d710
No known key found for this signature in database
GPG key ID: CD109927C34A63C4
2 changed files with 14 additions and 20 deletions

View file

@ -143,9 +143,9 @@ func (r *autoRedirect) Start() error {
ResetMark: r.effectiveResetMark(),
})
if err != nil {
r.logger.Warn("nfqueue not available, pre-match disabled: ", err)
r.logger.Warn("nfqueue not available, pre-match disabled (missing nfnetlink_queue and nft_queue kernel module?): ", err)
} else if err = handler.Start(); err != nil {
r.logger.Warn("nfqueue start failed, pre-match disabled: ", err)
r.logger.Warn("nfqueue start failed, pre-match disabled (missing nfnetlink_queue and nft_queue kernel module?): ", err)
} else {
r.nfqueueHandler = handler
r.nfqueueEnabled = true