aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2014-04-03 17:00:22 -0400
committerNick Mathewson <nickm@torproject.org>2014-04-16 23:03:25 -0400
commit89e520e2a710267c32b5afa03d32924646f78b28 (patch)
tree4a3729d0ea1b8fcd8e7a22fd06adba7ef24c81cd /src
parentc00c45fee133cbb21f69321fa7715a9f7d91164d (diff)
downloadtor-89e520e2a710267c32b5afa03d32924646f78b28.tar
tor-89e520e2a710267c32b5afa03d32924646f78b28.tar.gz
Call pf-divert openbsd-specific, not no-linux
Diffstat (limited to 'src')
-rw-r--r--src/or/config.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/config.c b/src/or/config.c
index f0ee32298..3179018fb 100644
--- a/src/or/config.c
+++ b/src/or/config.c
@@ -2555,8 +2555,8 @@ options_validate(or_options_t *old_options, or_options_t *options,
if (!strcasecmp(options->TransProxyType, "default")) {
options->TransProxyType_parsed = TPT_DEFAULT;
} else if (!strcasecmp(options->TransProxyType, "pf-divert")) {
-#ifdef __linux__
- REJECT("pf is a BSD-specific feature.");
+#ifndef __OpenBSD__
+ REJECT("pf-divert is a OpenBSD-specific feature.");
#else
options->TransProxyType_parsed = TPT_PF_DIVERT;
#endif