mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-20 10:12:15 +01:00
Call pf-divert openbsd-specific, not no-linux
This commit is contained in:
parent
c00c45fee1
commit
89e520e2a7
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user