ppf: pass url scoring config to httpd module
This commit is contained in:
@@ -1223,8 +1223,14 @@ def main():
|
||||
watcherd = None
|
||||
# Start httpd independently when watchd is disabled
|
||||
if config.httpd.enabled:
|
||||
from httpd import ProxyAPIServer
|
||||
from httpd import ProxyAPIServer, configure_url_scoring
|
||||
import network_stats
|
||||
configure_url_scoring(
|
||||
config.ppf.checktime,
|
||||
config.ppf.perfail_checktime,
|
||||
config.ppf.max_fail,
|
||||
config.ppf.list_max_age_days
|
||||
)
|
||||
|
||||
def httpd_stats_provider():
|
||||
"""Stats provider for httpd-only mode (scraping without testing)."""
|
||||
|
||||
Reference in New Issue
Block a user