Skip to content

Build your personal knowledge base with Trilium Notes

fix(desktop/setup): misleading IP in desktop-to-desktop sync

Elian Doran5bb0887d8b72
diff --git a/apps/client/src/setup.tsx b/apps/client/src/setup.tsx
index 32edb7491c..1ff3cef43a 100644
--- a/apps/client/src/setup.tsx
+++ b/apps/client/src/setup.tsx
@@ -367,7 +367,7 @@ function SyncFromDesktop({ setState }: { setState: (state: State) => void }) {
<CardSection>1. {t("setup.sync-from-desktop-step1")}</CardSection>
<CardSection>2. {t("setup.sync-from-desktop-step2")}</CardSection>
<CardSection>3. {t("setup.sync-from-desktop-step3")}</CardSection>
- <CardSection>4. {t("setup.sync-from-desktop-step4", { host: location.host })}</CardSection>
+ <CardSection>4. {t("setup.sync-from-desktop-step4", { protocol: location.protocol, port: location.port })}</CardSection>
<CardSection>5. {t("setup.sync-from-desktop-step5")}</CardSection>
{t("setup.sync-from-desktop-final")}
diff --git a/apps/client/src/translations/en/translation.json b/apps/client/src/translations/en/translation.json
index 8a7f5d5718..95d056bd86 100644
--- a/apps/client/src/translations/en/translation.json
+++ b/apps/client/src/translations/en/translation.json
@@ -2264,7 +2264,7 @@
"sync-from-desktop-step1": "Open your desktop instance of Trilium Notes.",
"sync-from-desktop-step2": "From the Trilium Menu, click Options.",
"sync-from-desktop-step3": "Click on Sync category in the note tree.",
- "sync-from-desktop-step4": "Change server instance address to: {{- host}} and click Save.",
+ "sync-from-desktop-step4": "Change server instance address to point to this device: \"{{protocol}}//<hostname>:{{- port}}\" and click Save.",
"sync-from-desktop-step5": "Click \"Test sync\" button to verify connection is successful.",
"sync-from-desktop-final": "Once you've completed these steps, you can proceed to the next step.",
"sync-from-desktop-waiting": "Waiting for connection...",