]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Call pf-divert openbsd-specific, not no-linux
authorNick Mathewson <nickm@torproject.org>
Thu, 3 Apr 2014 21:00:22 +0000 (17:00 -0400)
committerNick Mathewson <nickm@torproject.org>
Thu, 17 Apr 2014 03:03:25 +0000 (23:03 -0400)
src/or/config.c

index f0ee322987caf29a6aa750ecfd7586112f3d5762..3179018fb6da5bc265f7c4ec02774c721b532e84 100644 (file)
@@ -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