sync: update from private repo (e321ac3)
CI / build-and-test (push) Has been cancelled

This commit is contained in:
oss-sync
2026-06-17 01:49:11 +00:00
parent 35e4fd30d2
commit 517142c61d
7 changed files with 106 additions and 23 deletions
+18 -6
View File
@@ -97,18 +97,30 @@ export function ServerTlsForm({ config, onChange }: SectionFormProps) {
</label>
</div>
{/* HTTP redirect port */}
{/* HTTP redirect port(s) — accepts a single port or a comma-separated list */}
<div>
<FieldLabel>{t('serverTls.httpRedirectPort')}</FieldLabel>
<FieldInput
type="number"
value={tls.httpRedirectPort != null ? String(tls.httpRedirectPort) : ''}
value={
Array.isArray(tls.httpRedirectPort)
? tls.httpRedirectPort.join(', ')
: tls.httpRedirectPort != null
? String(tls.httpRedirectPort)
: ''
}
onChange={v => {
const n = parseInt(v, 10);
onChange('server.tls.httpRedirectPort', isNaN(n) ? undefined : n);
const ports = v
.split(',')
.map(s => parseInt(s.trim(), 10))
.filter(n => !isNaN(n));
onChange(
'server.tls.httpRedirectPort',
ports.length === 0 ? undefined : ports.length === 1 ? ports[0] : ports,
);
}}
placeholder="9080"
placeholder="9080 (or 80, 9876)"
/>
<HelpText>{t('serverTls.httpRedirectPortHelp')}</HelpText>
</div>
{/* Redirect host (optional) */}