Dont duplicate interfaces on port change 3.0

This commit is contained in:
2026-08-01 06:31:15 +03:00
parent be3bebeb5b
commit 703ca1b559
10 changed files with 106 additions and 85 deletions
+5 -4
View File
@@ -19,12 +19,13 @@ export const storeJson = FileHelper.json(
},
z.object({
/**
* Port ckpool binds for plaintext stratum. Also requested as the
* interface's preferred external port, so miners reach the pool on this
* same number whenever the OS can grant it.
* EXTERNAL port miners connect to for plaintext stratum requested as the
* interface's `preferredExternalPort`. The in-container bind is a fixed
* constant (see utils.ts), so changing this rebinds without restarting
* ckpool and never orphans a binding.
*/
stratumPort: z.number().int().min(1).max(65535).catch(defaultStratumPort),
/** Port stunnel accepts TLS stratum on (only used when tlsEnabled). */
/** EXTERNAL port for TLS stratum (only used when tlsEnabled). */
stratumTlsPort: z
.number()
.int()