mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-13 06:33:44 +01:00
Remove the extra whitespace around the DARWIN #defines
This commit is contained in:
parent
97b5ff2b1d
commit
c8859eb754
@ -3228,13 +3228,13 @@ options_validate_cb(const void *old_options_, void *options_, char **msg)
|
|||||||
if (!strcasecmp(options->TransProxyType, "default")) {
|
if (!strcasecmp(options->TransProxyType, "default")) {
|
||||||
options->TransProxyType_parsed = TPT_DEFAULT;
|
options->TransProxyType_parsed = TPT_DEFAULT;
|
||||||
} else if (!strcasecmp(options->TransProxyType, "pf-divert")) {
|
} else if (!strcasecmp(options->TransProxyType, "pf-divert")) {
|
||||||
#if !defined(OpenBSD) && !defined( DARWIN )
|
#if !defined(OpenBSD) && !defined(DARWIN)
|
||||||
/* Later versions of OS X have pf */
|
/* Later versions of OS X have pf */
|
||||||
REJECT("pf-divert is a OpenBSD-specific "
|
REJECT("pf-divert is a OpenBSD-specific "
|
||||||
"and OS X/Darwin-specific feature.");
|
"and OS X/Darwin-specific feature.");
|
||||||
#else
|
#else
|
||||||
options->TransProxyType_parsed = TPT_PF_DIVERT;
|
options->TransProxyType_parsed = TPT_PF_DIVERT;
|
||||||
#endif /* !defined(OpenBSD) && !defined( DARWIN ) */
|
#endif /* !defined(OpenBSD) && !defined(DARWIN) */
|
||||||
} else if (!strcasecmp(options->TransProxyType, "tproxy")) {
|
} else if (!strcasecmp(options->TransProxyType, "tproxy")) {
|
||||||
#if !defined(__linux__)
|
#if !defined(__linux__)
|
||||||
REJECT("TPROXY is a Linux-specific feature.");
|
REJECT("TPROXY is a Linux-specific feature.");
|
||||||
|
@ -1071,14 +1071,14 @@ test_options_validate__transproxy(void *ignored)
|
|||||||
ret = options_validate(NULL, tdata->opt, &msg);
|
ret = options_validate(NULL, tdata->opt, &msg);
|
||||||
tt_int_op(ret, OP_EQ, -1);
|
tt_int_op(ret, OP_EQ, -1);
|
||||||
|
|
||||||
#if !defined(OpenBSD) && !defined( DARWIN )
|
#if !defined(OpenBSD) && !defined(DARWIN)
|
||||||
tt_str_op(msg, OP_EQ,
|
tt_str_op(msg, OP_EQ,
|
||||||
"pf-divert is a OpenBSD-specific and OS X/Darwin-specific feature.");
|
"pf-divert is a OpenBSD-specific and OS X/Darwin-specific feature.");
|
||||||
#else
|
#else
|
||||||
tt_int_op(tdata->opt->TransProxyType_parsed, OP_EQ, TPT_PF_DIVERT);
|
tt_int_op(tdata->opt->TransProxyType_parsed, OP_EQ, TPT_PF_DIVERT);
|
||||||
tt_str_op(msg, OP_EQ, "Cannot use TransProxyType without "
|
tt_str_op(msg, OP_EQ, "Cannot use TransProxyType without "
|
||||||
"any valid TransPort.");
|
"any valid TransPort.");
|
||||||
#endif /* !defined(OpenBSD) && !defined( DARWIN ) */
|
#endif /* !defined(OpenBSD) && !defined(DARWIN) */
|
||||||
tor_free(msg);
|
tor_free(msg);
|
||||||
|
|
||||||
// Test tproxy trans proxy
|
// Test tproxy trans proxy
|
||||||
|
Loading…
Reference in New Issue
Block a user