Fix wrongly reported network filter options in logger

Regression from:
- 1e2eb037e5

Related feedback:
- 1e2eb037e5 (commitcomment-43759481)
This commit is contained in:
Raymond Hill 2020-10-31 13:47:35 -04:00
parent aae08d519f
commit 64dc5f7807
No known key found for this signature in database
GPG key ID: 25E1490B761470C2

View file

@ -228,12 +228,12 @@ const toLogDataInternal = function(categoryBits, tokenHash, iunit) {
isRegex: false, isRegex: false,
}; };
filterUnits[iunit].logData(logData); filterUnits[iunit].logData(logData);
if ( categoryBits & 0x002 ) { if ( (categoryBits & Important) !== 0 ) {
logData.options.unshift('important'); logData.options.unshift('important');
} }
if ( categoryBits & 0x008 ) { if ( (categoryBits & ThirdParty) !== 0 ) {
logData.options.unshift('3p'); logData.options.unshift('3p');
} else if ( categoryBits & 0x004 ) { } else if ( (categoryBits & FirstParty) !== 0 ) {
logData.options.unshift('1p'); logData.options.unshift('1p');
} }
const type = categoryBits & TypeBitsMask; const type = categoryBits & TypeBitsMask;
@ -248,7 +248,7 @@ const toLogDataInternal = function(categoryBits, tokenHash, iunit) {
) { ) {
raw += '*'; raw += '*';
} }
if ( categoryBits & 0x001 ) { if ( (categoryBits & AllowAction) !== 0 ) {
raw = '@@' + raw; raw = '@@' + raw;
} }
if ( denyallow.length !== 0 ) { if ( denyallow.length !== 0 ) {