Voice-to-text dictation app with local (Nvidia Parakeet/Whisper) and cloud models (BYOK). Privacy-first and available cross-platform.
JavaScript aianthropiccross-platformgeminigroqlinuxmacosnvidiaopen-sourceopenaiparakeetspeech-to-texttranscribewhisperwindows
fix: Tailscale MagicDNS allowed over HTTP and Self-hosted mode for uploads
Chadpiha8a67a39a0660
diff --git a/src/components/notes/ShareNoteDialog.tsx b/src/components/notes/ShareNoteDialog.tsxindex d441f0cf4..1b278e728 100644--- a/src/components/notes/ShareNoteDialog.tsx+++ b/src/components/notes/ShareNoteDialog.tsx@@ -34,7 +34,6 @@ import {filterShareVisibilityOptions,hasUsableExternalShareVisibility,isShareActionAllowed,- isShareVisibilityAllowed,type SharePolicyAction,} from "../../stores/policyRules";import { usePolicySnapshot } from "../../hooks/usePolicy";@@ -105,10 +104,6 @@ export default function ShareNoteDialog({ open, onOpenChange, note }: ShareNoteD}, [note.is_shared]);const policyState = usePolicySnapshot();- const visibilityAllowed = useCallback(- (visibility: ShareVisibility) => isShareVisibilityAllowed(policyState, visibility),- [policyState]- );const ownerDomain = useMemo(() => emailDomain(ownerEmail), [ownerEmail]);const showDomainOption = Boolean(ownerDomain && !isPersonalEmailDomain(ownerDomain));diff --git a/src/components/settings/UploadSettings.tsx b/src/components/settings/UploadSettings.tsxindex eccb53382..628d6e1be 100644--- a/src/components/settings/UploadSettings.tsx+++ b/src/components/settings/UploadSettings.tsx@@ -1,11 +1,12 @@import { useCallback } from "react";import { useTranslation } from "react-i18next";-import { Cloud, Key, Cpu } from "lucide-react";+import { Cloud, Key, Cpu, Network } from "lucide-react";import { useSettingsStore } from "../../stores/settingsStore";import { usePolicyModeOptions } from "../../hooks/usePolicy";import { InferenceModeSelector } from "../ui/SettingsSection";import type { InferenceModeOption } from "../ui/SettingsSection";import TranscriptionModelPicker from "../TranscriptionModelPicker";+import SelfHostedPanel from "../SelfHostedPanel";import type { InferenceMode } from "../../types/electron";import { useStartOnboarding } from "../../hooks/useStartOnboarding";@@ -31,6 +32,10 @@ export function UploadTranscriptionPanel() {uploadCloudTranscriptionBaseUrl,setUploadCloudTranscriptionBaseUrl,setUploadCloudTranscriptionMode,+ remoteTranscriptionUrl,+ setRemoteTranscriptionUrl,+ remoteTranscriptionModel,+ setRemoteTranscriptionModel,} = useSettingsStore();const {modes: transcriptionModes,@@ -58,6 +63,12 @@ export function UploadTranscriptionPanel() {description: t("settingsPage.transcription.modes.localDesc"),icon: <Cpu className="w-4 h-4" />,},+ {+ id: "self-hosted",+ label: t("settingsPage.transcription.modes.selfHosted"),+ description: t("settingsPage.transcription.modes.selfHostedDesc"),+ icon: <Network className="w-4 h-4" />,+ },],"transcription",uploadTranscriptionMode@@ -116,6 +127,15 @@ export function UploadTranscriptionPanel() {{effectiveTranscriptionMode === "providers" && renderTranscriptionPicker("cloud")}{effectiveTranscriptionMode === "local" && renderTranscriptionPicker("local")}+ {effectiveTranscriptionMode === "self-hosted" && (+ <SelfHostedPanel+ service="transcription"+ url={remoteTranscriptionUrl}+ onUrlChange={setRemoteTranscriptionUrl}+ model={remoteTranscriptionModel}+ onModelChange={setRemoteTranscriptionModel}+ />+ )}</div>);}diff --git a/src/utils/urlUtils.ts b/src/utils/urlUtils.tsindex ffbed3dcf..2efdb59eb 100644--- a/src/utils/urlUtils.ts+++ b/src/utils/urlUtils.ts@@ -38,6 +38,9 @@ function isPrivateHost(hostname: string): boolean {const isIPv6 = h.includes(":");if (isIPv6 && (h.startsWith("fe80") || h.startsWith("fc") || h.startsWith("fd"))) return true;if (h.endsWith(".local")) return true;+ // Tailscale MagicDNS — resolves to CGNAT (100.64/10) addresses reachable+ // only inside the user's own tailnet.+ if (h.endsWith(".ts.net")) return true;return false;}diff --git a/test/helpers/secureEndpoint.test.js b/test/helpers/secureEndpoint.test.jsindex 880fab58b..3c2378b51 100644--- a/test/helpers/secureEndpoint.test.js+++ b/test/helpers/secureEndpoint.test.js@@ -80,6 +80,17 @@ test("link-local, IPv6 ULA, and .local hostnames are allowed over http", async (assert.equal(isSecureEndpoint("http://myserver.local:8080"), true);});+test("Tailscale MagicDNS hostnames (.ts.net) are allowed over http", async () => {+ const { isSecureEndpoint, isSecureHttpEndpoint } = await load();++ assert.equal(isSecureEndpoint("http://myserver.tailnet-1234.ts.net:8080"), true);+ assert.equal(isSecureHttpEndpoint("http://myserver.tailnet-1234.ts.net:8080"), true);+ // Only true subdomains of ts.net qualify — look-alike public domains do not.+ assert.equal(isSecureEndpoint("http://myts.net:8080"), false);+ assert.equal(isSecureEndpoint("http://evil-ts.net:8080"), false);+ assert.equal(isSecureEndpoint("http://ts.net:8080"), false);+});+test("unparseable input is never secure", async () => {const { isSecureEndpoint } = await load();