commit 661e31769795949acec36cbc24f0a1eb1db8b653
parent 6c8c9731915a796c8a1bc11f376793459db1200f
Author: Nick Mathewson <nickm@torproject.org>
Date: Mon, 24 Jul 2017 15:13:23 -0400
Fix hs_config unit test on systems without unix sockets
Bugfix on 418059dd96f5f427eceffff1daeb2a2f6c4adbeb; jenkins found
this.
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/test/test_hs_config.c b/src/test/test_hs_config.c
@@ -266,7 +266,9 @@ test_valid_service_v2(void *arg)
"HiddenServiceVersion 2\n"
"HiddenServicePort 80\n"
"HiddenServicePort 22 localhost:22\n"
+#ifndef HAVE_SYS_UN_H
"HiddenServicePort 42 unix:/path/to/socket\n"
+#endif
"HiddenServiceAuthorizeClient basic alice,bob,eve\n"
"HiddenServiceAllowUnknownPorts 1\n"
"HiddenServiceMaxStreams 42\n"