Allow -u root with pf proxyspecs on OS X

pull/13/head
Daniel Roethlisberger 10 years ago
parent f076336e0b
commit ab466aafb7

@ -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);

Loading…
Cancel
Save