From a1cf77ca54e8512ca8c7625bb1f78fe80faf55e0 Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Fri, 28 Jun 2019 17:33:25 -0700 Subject: [PATCH] test-help-documentation: Bind vnu.jar to 127.0.0.1. Signed-off-by: Anders Kaseorg --- .../documentation_crawler/spiders/common/spiders.py | 2 +- tools/test-help-documentation | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/documentation_crawler/documentation_crawler/spiders/common/spiders.py b/tools/documentation_crawler/documentation_crawler/spiders/common/spiders.py index fe8a18a48f..2eafa95b37 100644 --- a/tools/documentation_crawler/documentation_crawler/spiders/common/spiders.py +++ b/tools/documentation_crawler/documentation_crawler/spiders/common/spiders.py @@ -122,7 +122,7 @@ class BaseDocumentationSpider(scrapy.Spider): if getattr(self, 'validate_html', False): yield Request( - 'http://localhost:9988/?out=json', + 'http://127.0.0.1:9988/?out=json', method='POST', headers={'Content-Type': response.headers['Content-Type']}, body=response.body, diff --git a/tools/test-help-documentation b/tools/test-help-documentation index 5227ec0049..7977c2b1c4 100755 --- a/tools/test-help-documentation +++ b/tools/test-help-documentation @@ -44,6 +44,7 @@ def vnu_servlet() -> Iterator[None]: os.path.dirname(__file__), '../node_modules/vnu-jar/build/dist/vnu.jar', ), + '-Dnu.validator.servlet.bind-address=127.0.0.1', 'nu.validator.servlet.Main', '9988', ]) as proc: