]> git.ipfire.org Git - thirdparty/unbound.git/commit
Support multiple python module instances
authorPhilipp Serr <episource@gmx.de>
Sun, 22 Jan 2017 10:58:28 +0000 (11:58 +0100)
committerPhilipp Serr <episource@gmx.de>
Sat, 2 Mar 2019 13:32:48 +0000 (14:32 +0100)
commitb248654aabe5e03c9502ad2c8991514cbcd897d3
treeb77b47e2047225d38795d8df092f2b34ccd7c8a7
parentdfe8e0dfa208b633077cd5602050ed55f1990910
Support multiple python module instances

This commit adds proper support for multiple instances of the python
module: When more than one instance is added to the module list, the
first instance loads the first script specified in the `python:`
configuration section. The second instance loads the second script,
and so on.

When there are more module instances in the module list than there are
scripts in the `python:` section, an error is raised during
initialization and unbound won't start. When more scripts than module
instances are provided, the surplus scripts are ignored.
pythonmod/interface.i
pythonmod/pythonmod.c
util/config_file.c
util/config_file.h
util/configparser.c
util/configparser.y