diff options
author | Nick Mathewson <nickm@torproject.org> | 2017-07-24 15:58:11 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-07-24 15:58:11 -0400 |
commit | a4217cc52f0369efc01d0670ba789f6900e15244 (patch) | |
tree | b1fcbda55b2b67db2ed6592f5fbabbfe1bfef644 /src/test/test_hs_config.c | |
parent | 661e31769795949acec36cbc24f0a1eb1db8b653 (diff) | |
download | tor-a4217cc52f0369efc01d0670ba789f6900e15244.tar.gz tor-a4217cc52f0369efc01d0670ba789f6900e15244.zip |
Fix remaining cases of hs_config failures without af_unix
Diffstat (limited to 'src/test/test_hs_config.c')
-rw-r--r-- | src/test/test_hs_config.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/test/test_hs_config.c b/src/test/test_hs_config.c index 16f51f808f..4d4bbb8891 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" |