Project

General

Profile

Actions

Bug #13596

closed

pfBlockerNG-devel Unbound does not start when using DNSBL python regex with multiple commented lines

Added by Marcos M over 1 year ago. Updated about 1 year ago.

Status:
Resolved
Priority:
Low
Assignee:
-
Category:
pfBlockerNG
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Plus Target Version:
Affected Version:
Affected Plus Version:
Affected Architecture:

Description

Enabling Regex Blocking in Unbound python mode and adding comments in Python Regex List cant prevent unbound from starting, giving the following error:

[54695:0] error: pythonmod: python error: Traceback (most recent call last):
File "pfb_unbound.py", line 229, in init_standard pfb['python_enable'] = config.getboolean('MAIN', 'python_enable')
File "/usr/local/lib/python3.9/configparser.py", line 828, in getboolean return self._get_conv(section, option, self._convert_to_boolean,
File "/usr/local/lib/python3.9/configparser.py", line 808, in _get_conv return self._get(section, conv, option, raw=raw, vars=vars,
File "/usr/local/lib/python3.9/configparser.py", line 803, in _get return conv(self.get(section, option, **kwargs))
File "/usr/local/lib/python3.9/configparser.py", line 799, in get return self._interpolation.before_get(self, section, option, value,
File "/usr/local/lib/python3.9/configparser.py", line 395, in before_get self._interpolate_some(parser, option, L, value, section, defaults, 1)
File "/usr/local/lib/python3.9/configparser.py", line 412, in _interpolate_some p = rest.find("%") AttributeError: 'list' object has no attribute 'find' 

Tested with:

Success

foo
bar

Success

foo # test
bar

Fail

foo # test
bar # test

Actions

Also available in: Atom PDF