mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-21 08:03:13 +09:00
Fix incorrect config validators
This commit is contained in:
1 file changed
+3
-5
@@ -190,7 +190,7 @@ export class ControllerConfig extends classes.Config<ControllerConfigFields> {
|
|||||||
description: "Interval in seconds to collect and update system metrics for the Web UI",
|
description: "Interval in seconds to collect and update system metrics for the Web UI",
|
||||||
type: "number",
|
type: "number",
|
||||||
initialValue: 10,
|
initialValue: 10,
|
||||||
validator: validators.greaterThanZero,
|
validator: validators.greaterThanEqualZero,
|
||||||
},
|
},
|
||||||
"controller.proxy_stream_timeout": {
|
"controller.proxy_stream_timeout": {
|
||||||
title: "Proxy Stream Timeout",
|
title: "Proxy Stream Timeout",
|
||||||
@@ -213,7 +213,6 @@ export class ControllerConfig extends classes.Config<ControllerConfigFields> {
|
|||||||
type: "string",
|
type: "string",
|
||||||
credential: ["controller"],
|
credential: ["controller"],
|
||||||
optional: true,
|
optional: true,
|
||||||
// TODO extendedValidation, lowercase hex characters, maybe length? cannot be set without username
|
|
||||||
},
|
},
|
||||||
"controller.share_factorio_credentials_with_hosts": {
|
"controller.share_factorio_credentials_with_hosts": {
|
||||||
title: "Share Factorio credentials with Hosts",
|
title: "Share Factorio credentials with Hosts",
|
||||||
@@ -389,7 +388,6 @@ export class HostConfig extends classes.Config<HostConfigFields> {
|
|||||||
type: "string",
|
type: "string",
|
||||||
credential: ["host"],
|
credential: ["host"],
|
||||||
optional: true,
|
optional: true,
|
||||||
// TODO extendedValidation, lowercase hex characters, maybe length? cannot be set without username
|
|
||||||
},
|
},
|
||||||
"host.max_reconnect_delay": {
|
"host.max_reconnect_delay": {
|
||||||
title: "Max Reconnect Delay",
|
title: "Max Reconnect Delay",
|
||||||
@@ -536,7 +534,7 @@ export class InstanceConfig extends classes.Config<InstanceConfigFields> {
|
|||||||
restartRequired: true,
|
restartRequired: true,
|
||||||
type: "number",
|
type: "number",
|
||||||
optional: true,
|
optional: true,
|
||||||
validator: validators.optional(validators.greaterThanZero),
|
validator: validators.optional(validators.greaterThanEqualZero),
|
||||||
},
|
},
|
||||||
"factorio.host_assigned_game_port": {
|
"factorio.host_assigned_game_port": {
|
||||||
access: ["host"],
|
access: ["host"],
|
||||||
@@ -549,7 +547,7 @@ export class InstanceConfig extends classes.Config<InstanceConfigFields> {
|
|||||||
restartRequired: true,
|
restartRequired: true,
|
||||||
type: "number",
|
type: "number",
|
||||||
optional: true,
|
optional: true,
|
||||||
validator: validators.optional(validators.greaterThanZero),
|
validator: validators.optional(validators.greaterThanEqualZero),
|
||||||
},
|
},
|
||||||
"factorio.rcon_password": {
|
"factorio.rcon_password": {
|
||||||
credential: ["host", "controller"],
|
credential: ["host", "controller"],
|
||||||
|
|||||||
Reference in new issue
Block a user