Allow -u root with pf proxyspecs on OS X

This commit is contained in:
Daniel Roethlisberger 2014-11-28 10:03:29 +01:00
parent f076336e0b
commit ab466aafb7

3
main.c
View File

@ -597,7 +597,8 @@ main(int argc, char *argv[])
}
}
#ifdef __APPLE__
if (opts->dropuser && nat_used("pf")) {
if (opts->dropuser && !!strcmp(opts->dropuser, "root") &&
nat_used("pf")) {
fprintf(stderr, "%s: cannot use 'pf' proxyspec with -u due "
"to Apple bug\n", argv0);
exit(EXIT_FAILURE);