Skip to content

fix(net-filter): write conf.enable instead of conf.debug in enable() - #139

Open
JoeSergen wants to merge 1 commit into
DKapture:mainfrom
JoeSergen:fix/netfilter-enable-flag
Open

fix(net-filter): write conf.enable instead of conf.debug in enable()#139
JoeSergen wants to merge 1 commit into
DKapture:mainfrom
JoeSergen:fix/netfilter-enable-flag

Conversation

@JoeSergen

Copy link
Copy Markdown

Fixes #136

NetFilter::enable() is documented to turn the whole net-monitor kernel filtering on/off (Configs.enable), but the implementation stored the bool into conf.debug, so the global switch never took effect and the debug level got clobbered instead. Write conf.enable`.

NetFilter::enable() is documented to turn the whole net-monitor kernel
filtering on/off (Configs.enable), but the implementation stored the
bool into conf.debug, so the global switch never took effect and the
debug level got clobbered instead.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: NetFilter::enable(bool) 写入 conf.debug 而非 conf.enable,全局开关失效

1 participant