Call pf-divert openbsd-specific, not no-linux

This commit is contained in:
Nick Mathewson 2014-04-03 17:00:22 -04:00
parent c00c45fee1
commit 89e520e2a7

View 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