This caused my attempt to fix hs_config/valid_service_v2 to fail

_again_.

Third time's the charm?
This commit is contained in:
Nick Mathewson 2017-07-25 13:24:41 -04:00
parent bb66a48541
commit b9ad49844b

View File

@ -266,7 +266,7 @@ test_valid_service_v2(void *arg)
"HiddenServiceVersion 2\n"
"HiddenServicePort 80\n"
"HiddenServicePort 22 localhost:22\n"
#ifndef HAVE_SYS_UN_H
#ifdef HAVE_SYS_UN_H
"HiddenServicePort 42 unix:/path/to/socket\n"
#endif
"HiddenServiceAuthorizeClient basic alice,bob,eve\n"
@ -286,7 +286,7 @@ 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
#ifdef HAVE_SYS_UN_H
"HiddenServicePort 9000 unix:/path/to/socket\n"
#endif
"HiddenServiceAuthorizeClient stealth charlie,romeo\n"
@ -370,7 +370,7 @@ test_valid_service_v3(void *arg)
"HiddenServiceVersion 3\n"
"HiddenServicePort 80\n"
"HiddenServicePort 22 localhost:22\n"
#ifndef HAVE_SYS_UN_H
#ifdef HAVE_SYS_UN_H
"HiddenServicePort 42 unix:/path/to/socket\n"
#endif
"HiddenServiceAllowUnknownPorts 1\n"
@ -389,7 +389,7 @@ 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
#ifdef HAVE_SYS_UN_H
"HiddenServicePort 9000 unix:/path/to/socket\n"
#endif
"HiddenServiceAllowUnknownPorts 0\n"
@ -440,7 +440,7 @@ 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
#ifdef HAVE_SYS_UN_H
"HiddenServicePort 9000 unix:/path/to/socket\n"
#endif
"HiddenServiceAllowUnknownPorts 0\n"