diff options
author | Shawn Landden <slandden@gmail.com> | 2017-11-19 16:31:13 -0800 |
---|---|---|
committer | Shawn Landden <slandden@gmail.com> | 2017-11-19 16:31:13 -0800 |
commit | 18b9faf205314f5f9329dff9c3f0b5c295384580 (patch) | |
tree | aeb020222b5572ca05d73d34b5086867e35594a5 | |
parent | 4f6fc0cd50dd6987ba72e01dca58361b693bbf13 (diff) | |
download | distcc-git-18b9faf205314f5f9329dff9c3f0b5c295384580.tar.gz |
make --allow-private the default
-rw-r--r-- | src/daemon.c | 8 | ||||
-rw-r--r-- | src/dopt.c | 4 | ||||
-rw-r--r-- | src/dopt.h | 1 |
3 files changed, 6 insertions, 7 deletions
diff --git a/src/daemon.c b/src/daemon.c index 545cb32..b3e269c 100644 --- a/src/daemon.c +++ b/src/daemon.c @@ -168,12 +168,10 @@ int main(int argc, char *argv[]) /* check this before redirecting the logs, so that it's really obvious */ if (!dcc_should_be_inetd()) if (opt_allowed == NULL) { - rs_log_error("--allow or --allow-private option is now mandatory; " - "you must specify which clients are allowed to connect." - " Use --allow-private to allow non-Internet (globally" + rs_log_warning("No --allow option specified. Defaulting to --allow-private." + " Allowing non-Internet (globally" " routable) addresses."); - ret = EXIT_BAD_ARGUMENTS; - goto out; + opt_allow_private = 1; } if ((ret = dcc_set_lifetime()) != 0) @@ -68,8 +68,6 @@ int arg_port = DISTCC_DEFAULT_PORT; int arg_stats = DISTCC_DEFAULT_STATS_ENABLED; int arg_stats_port = DISTCC_DEFAULT_STATS_PORT; -int opt_allow_private = 0; - /** If true, serve all requests directly from listening process without forking. Better for debugging. **/ int opt_no_fork = 0; @@ -83,6 +81,8 @@ char *opt_listen_addr = NULL; struct dcc_allow_list *opt_allowed = NULL; +int opt_allow_private = 0; + /** * If true, don't detach from the parent. This is probably necessary * for use with daemontools or other monitoring programs, and is also @@ -24,6 +24,7 @@ /* dopt.c */ extern struct dcc_allow_list *opt_allowed; +extern int opt_allow_private; int distccd_parse_options(int argc, const char *argv[]); extern int arg_port; |