[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tor/master] Fix remaining cases of hs_config failures without af_unix
commit a4217cc52f0369efc01d0670ba789f6900e15244
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
Date: Mon Jul 24 15:58:11 2017 -0400
Fix remaining cases of hs_config failures without af_unix
---
src/test/test_hs_config.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/src/test/test_hs_config.c b/src/test/test_hs_config.c
index 16f51f808..4d4bbb889 100644
--- a/src/test/test_hs_config.c
+++ b/src/test/test_hs_config.c
@@ -286,7 +286,9 @@ test_valid_service_v2(void *arg)
"HiddenServiceVersion 2\n"
"HiddenServicePort 65535\n"
"HiddenServicePort 22 1.1.1.1:22\n"
+#ifndef HAVE_SYS_UN_H
"HiddenServicePort 9000 unix:/path/to/socket\n"
+#endif
"HiddenServiceAuthorizeClient stealth charlie,romeo\n"
"HiddenServiceAllowUnknownPorts 0\n"
"HiddenServiceMaxStreams 42\n"
@@ -368,7 +370,9 @@ test_valid_service_v3(void *arg)
"HiddenServiceVersion 3\n"
"HiddenServicePort 80\n"
"HiddenServicePort 22 localhost:22\n"
+#ifndef HAVE_SYS_UN_H
"HiddenServicePort 42 unix:/path/to/socket\n"
+#endif
"HiddenServiceAllowUnknownPorts 1\n"
"HiddenServiceMaxStreams 42\n"
"HiddenServiceMaxStreamsCloseCircuit 0\n"
@@ -385,7 +389,9 @@ test_valid_service_v3(void *arg)
"HiddenServiceVersion 3\n"
"HiddenServicePort 65535\n"
"HiddenServicePort 22 1.1.1.1:22\n"
+#ifndef HAVE_SYS_UN_H
"HiddenServicePort 9000 unix:/path/to/socket\n"
+#endif
"HiddenServiceAllowUnknownPorts 0\n"
"HiddenServiceMaxStreams 42\n"
"HiddenServiceMaxStreamsCloseCircuit 0\n"
@@ -434,7 +440,9 @@ test_staging_service_v3(void *arg)
"HiddenServiceVersion 3\n"
"HiddenServicePort 65535\n"
"HiddenServicePort 22 1.1.1.1:22\n"
+#ifndef HAVE_SYS_UN_H
"HiddenServicePort 9000 unix:/path/to/socket\n"
+#endif
"HiddenServiceAllowUnknownPorts 0\n"
"HiddenServiceMaxStreams 42\n"
"HiddenServiceMaxStreamsCloseCircuit 0\n"
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits