Fix defaults for limix_min_hubs
This commit is contained in:
parent
0a3fe10f16
commit
45462595ac
@ -251,7 +251,7 @@
|
||||
<since>0.2.0</since>
|
||||
</option>
|
||||
|
||||
<option name="limit_min_hubs_user" type="int" default="10">
|
||||
<option name="limit_min_hubs_user" type="int" default="0">
|
||||
<check min="0" />
|
||||
<short>Minimum concurrent hubs as a guest user</short>
|
||||
<description>
|
||||
@ -261,7 +261,7 @@
|
||||
<since>0.2.0</since>
|
||||
</option>
|
||||
|
||||
<option name="limit_min_hubs_reg" type="int" default="10">
|
||||
<option name="limit_min_hubs_reg" type="int" default="0">
|
||||
<check min="0" />
|
||||
<short>Minimum concurrent hubs as a registered user</short>
|
||||
<description>
|
||||
@ -271,7 +271,7 @@
|
||||
<since>0.2.0</since>
|
||||
</option>
|
||||
|
||||
<option name="limit_min_hubs_op" type="int" default="10">
|
||||
<option name="limit_min_hubs_op" type="int" default="0">
|
||||
<check min="0" />
|
||||
<short>Minimum concurrent hubs as a operator (or admin)</short>
|
||||
<description>
|
||||
|
@ -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);
|
||||
|
@ -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) */
|
||||
|
Loading…
Reference in New Issue
Block a user