diff --git a/src/core/config.xml b/src/core/config.xml index 9a837e5..287b9d3 100644 --- a/src/core/config.xml +++ b/src/core/config.xml @@ -251,7 +251,7 @@ 0.2.0 - + Minimum concurrent hubs as a guest user @@ -261,7 +261,7 @@ 0.2.0 - + Minimum concurrent hubs as a registered user @@ -271,7 +271,7 @@ 0.2.0 - + Minimum concurrent hubs as a operator (or admin) diff --git a/src/core/gen_config.c b/src/core/gen_config.c index edb91f7..f76246f 100644 --- a/src/core/gen_config.c +++ b/src/core/gen_config.c @@ -26,9 +26,9 @@ void config_defaults(struct hub_config* config) DEFAULT_INTEGER(limit_max_hubs_reg, 10); DEFAULT_INTEGER(limit_max_hubs_op, 10); DEFAULT_INTEGER(limit_max_hubs, 25); - DEFAULT_INTEGER(limit_min_hubs_user, 10); - DEFAULT_INTEGER(limit_min_hubs_reg, 10); - DEFAULT_INTEGER(limit_min_hubs_op, 10); + DEFAULT_INTEGER(limit_min_hubs_user, 0); + DEFAULT_INTEGER(limit_min_hubs_reg, 0); + DEFAULT_INTEGER(limit_min_hubs_op, 0); DEFAULT_INTEGER(limit_min_share, 0); DEFAULT_INTEGER(limit_max_share, 0); DEFAULT_INTEGER(limit_min_slots, 0); @@ -246,9 +246,9 @@ void dump_config(struct hub_config* config, int ignore_defaults) DUMP_INT (limit_max_hubs_reg, 10); DUMP_INT (limit_max_hubs_op, 10); DUMP_INT (limit_max_hubs, 25); - DUMP_INT (limit_min_hubs_user, 10); - DUMP_INT (limit_min_hubs_reg, 10); - DUMP_INT (limit_min_hubs_op, 10); + DUMP_INT (limit_min_hubs_user, 0); + DUMP_INT (limit_min_hubs_reg, 0); + DUMP_INT (limit_min_hubs_op, 0); DUMP_INT (limit_min_share, 0); DUMP_INT (limit_max_share, 0); DUMP_INT (limit_min_slots, 0); diff --git a/src/core/gen_config.h b/src/core/gen_config.h index cdd8154..6a8b285 100644 --- a/src/core/gen_config.h +++ b/src/core/gen_config.h @@ -26,9 +26,9 @@ struct hub_config int limit_max_hubs_reg; /*<<< Max concurrent hubs as a registered user (default: 10) */ int limit_max_hubs_op; /*<<< Max concurrent hubs as a operator (or admin) (default: 10) */ int limit_max_hubs; /*<<< Max total hub connections allowed, user/reg/op combined. (default: 25) */ - int limit_min_hubs_user; /*<<< Minimum concurrent hubs as a guest user (default: 10) */ - int limit_min_hubs_reg; /*<<< Minimum concurrent hubs as a registered user (default: 10) */ - int limit_min_hubs_op; /*<<< Minimum concurrent hubs as a operator (or admin) (default: 10) */ + int limit_min_hubs_user; /*<<< Minimum concurrent hubs as a guest user (default: 0) */ + int limit_min_hubs_reg; /*<<< Minimum concurrent hubs as a registered user (default: 0) */ + int limit_min_hubs_op; /*<<< Minimum concurrent hubs as a operator (or admin) (default: 0) */ int limit_min_share; /*<<< Limit minimum share size in megabytes (default: 0) */ int limit_max_share; /*<<< Limit maximum share size in megabytes (default: 0) */ int limit_min_slots; /*<<< Limit minimum number of upload slots open per user (default: 0) */