[tor-commits] [tor/master] Call pf-divert openbsd-specific, not no-linux
nickm at torproject.org
nickm at torproject.org
Thu Apr 17 03:05:25 UTC 2014
commit 89e520e2a710267c32b5afa03d32924646f78b28
Author: Nick Mathewson <nickm at torproject.org>
Date: Thu Apr 3 17:00:22 2014 -0400
Call pf-divert openbsd-specific, not no-linux
---
src/or/config.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/or/config.c b/src/or/config.c
index f0ee322..3179018 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
More information about the tor-commits
mailing list