Skip to content

feat(settings): connection toggles in Downloads & Sharing + mdns i18n#28

Open
lukyrys wants to merge 3 commits intomainfrom
feat/auto-connect-networks
Open

feat(settings): connection toggles in Downloads & Sharing + mdns i18n#28
lukyrys wants to merge 3 commits intomainfrom
feat/auto-connect-networks

Conversation

@lukyrys
Copy link
Copy Markdown
Collaborator

@lukyrys lukyrys commented May 5, 2026

Three small changes in the same logical area — Settings → Downloads & Sharing.

What changes

  • New toggle useRelayClients (default ON) between maxRelayReservations and maxRelayClients. When OFF, the node no longer reserves slots on foreign relays (discoverRelays: 0, no /p2p-circuit listen slots).
  • New toggle autoConnectNewNetworks (default ON). When ON, networks added via lishnets.add and lishnets.addIfNotExists are immediately enabled=true and a lishnets:joined broadcast is emitted — the user no longer has to click a follow-up button.
  • CZ + EN translations for mdnsEnabled and mdnsInterval — these last two settings rows previously rendered as raw keys.

Commits

Type Subject
fix(i18n) add cs/en strings for mdns settings keys
feat(settings) add useRelayClients toggle for circuit-relay client role
feat(lishnets) auto-enable newly added networks per autoConnectNewNetworks setting

Backwards compatibility

Both new settings default to `true` and tolerate absence in older `settings.json` (`?? true` in the frontend, `!== false` in the backend). DB schema unchanged, existing relays/networks untouched.

@lukyrys lukyrys closed this May 5, 2026
@lukyrys lukyrys deleted the feat/auto-connect-networks branch May 5, 2026 21:01
@lukyrys lukyrys restored the feat/auto-connect-networks branch May 5, 2026 21:07
@lukyrys lukyrys reopened this May 5, 2026
@lukyrys lukyrys changed the title feat(network): auto-connect new networks + relay client toggle + missing i18n feat(settings): connection toggles in stahovani a sdileni + mdns i18n May 5, 2026
@lukyrys lukyrys changed the title feat(settings): connection toggles in stahovani a sdileni + mdns i18n feat(settings): connection toggles in Downloads & Sharing + mdns i18n May 5, 2026
@lukyrys lukyrys marked this pull request as ready for review May 5, 2026 21:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant