Skip to content

Commit

Permalink
test-help-documentation: Bind vnu.jar to 127.0.0.1.
Browse files Browse the repository at this point in the history
Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
  • Loading branch information
andersk authored and timabbott committed Jun 29, 2019
1 parent e0522b6 commit a1cf77c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def parse(self, response: Response) -> Iterable[Request]:

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,
Expand Down
1 change: 1 addition & 0 deletions tools/test-help-documentation
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit a1cf77c

Please sign in to comment.