Bugzilla – Bug 1213
Python module: support multiple instances
Last modified: 2017-03-12 14:59:50 CET
Currently, it's not possible to use multiple instances of the python module. Actually, adding the word `python` to the `module-config:` option several times is not rejected by unbound. In the end, however, it's not a useable setup supported by unbound.
It happened to be quiet simple to prepare the python module for multiple instance support. @github I've prepared a feature branch proposing a possible solution. Please have a look at: https://github.com/episource/unbound/tree/dev/pythonmod-multi-instance/main
The proposed solution allows to reference the python module more than once within `module-config:` option. For each instance, a `python-script:` option needs to be added to the `python:` section, specifying the python script file to be used. The first python module picks up the first `python-script:` option, the second picks up the second script, and so on.
Diff url has changed. The diff against current master can be found here: