From 9e2c63ec7c6e265498ed5d311c215682e2eb0fb7 Mon Sep 17 00:00:00 2001
From: OrcaWin
{networkIsPublic @@ -124,11 +161,17 @@ export function WindowsFirewallNotice({ 'auto.components.mobile.WindowsFirewallNotice.public-description', 'Change this trusted Wi-Fi network to Private before allowing Orca Mobile connections.' ) - : translate( - 'auto.components.mobile.WindowsFirewallNotice.missing-description', - 'Windows may block the pairing server. Add a rule for this Orca app and TCP port {{port}} on Private networks.', - { port: firewallStatus.port } - )} + : blockingRuleDetected + ? translate( + 'auto.components.mobile.WindowsFirewallNotice.blocked-description', + 'An existing inbound Block rule can override the pairing exception. Repair removes conflicting TCP rules for this Orca app, then allows port {{port}} on Private networks.', + { port: firewallStatus.port } + ) + : translate( + 'auto.components.mobile.WindowsFirewallNotice.missing-description', + 'Windows may block the pairing server. Add a rule for this Orca app and TCP port {{port}} on Private networks.', + { port: firewallStatus.port } + )}
{networkIsPublic ? ( @@ -155,10 +198,15 @@ export function WindowsFirewallNotice({ 'auto.components.mobile.WindowsFirewallNotice.waiting', 'Waiting for Windows…' ) - : translate( - 'auto.components.mobile.WindowsFirewallNotice.allow', - 'Allow phone connections' - )} + : blockingRuleDetected + ? translate( + 'auto.components.mobile.WindowsFirewallNotice.repair', + 'Repair firewall access' + ) + : translate( + 'auto.components.mobile.WindowsFirewallNotice.allow', + 'Allow phone connections' + )} )} diff --git a/src/renderer/src/i18n/locales/en.json b/src/renderer/src/i18n/locales/en.json index a9bbe9f92c1..bead7860f98 100644 --- a/src/renderer/src/i18n/locales/en.json +++ b/src/renderer/src/i18n/locales/en.json @@ -10703,14 +10703,18 @@ }, "WindowsFirewallNotice": { "repair-success": "Windows Firewall now allows Orca Mobile on private networks", - "repair-failed": "Could not add the Windows Firewall rule", + "repair-failed": "Could not update the Windows Firewall rules", "public-title": "Windows marks this network as public", "missing-title": "Allow phone connections through Windows Firewall", "public-description": "Change this trusted Wi-Fi network to Private before allowing Orca Mobile connections.", "missing-description": "Windows may block the pairing server. Add a rule for this Orca app and TCP port {{port}} on Private networks.", "open-settings": "Open network settings", "waiting": "Waiting for Windows…", - "allow": "Allow phone connections" + "allow": "Allow phone connections", + "repair-unverified": "Windows Firewall access could not be verified", + "blocked-title": "Windows may be blocking Orca Mobile", + "blocked-description": "An existing inbound Block rule can override the pairing exception. Repair removes conflicting TCP rules for this Orca app, then allows port {{port}} on Private networks.", + "repair": "Repair firewall access" } }, "gitlab": { diff --git a/src/renderer/src/i18n/locales/es.json b/src/renderer/src/i18n/locales/es.json index 9f99aa350f0..17f5d8ed52f 100644 --- a/src/renderer/src/i18n/locales/es.json +++ b/src/renderer/src/i18n/locales/es.json @@ -10703,14 +10703,18 @@ }, "WindowsFirewallNotice": { "repair-success": "Windows Firewall now allows Orca Mobile on private networks", - "repair-failed": "Could not add the Windows Firewall rule", + "repair-failed": "Could not update the Windows Firewall rules", "public-title": "Windows marks this network as public", "missing-title": "Allow phone connections through Windows Firewall", "public-description": "Change this trusted Wi-Fi network to Private before allowing Orca Mobile connections.", "missing-description": "Windows may block the pairing server. Add a rule for this Orca app and TCP port {{port}} on Private networks.", "open-settings": "Open network settings", "waiting": "Waiting for Windows…", - "allow": "Allow phone connections" + "allow": "Allow phone connections", + "repair-unverified": "Windows Firewall access could not be verified", + "blocked-title": "Windows may be blocking Orca Mobile", + "blocked-description": "An existing inbound Block rule can override the pairing exception. Repair removes conflicting TCP rules for this Orca app, then allows port {{port}} on Private networks.", + "repair": "Repair firewall access" } }, "gitlab": { diff --git a/src/renderer/src/i18n/locales/ja.json b/src/renderer/src/i18n/locales/ja.json index 99bfa5604d4..24ef9ff7829 100644 --- a/src/renderer/src/i18n/locales/ja.json +++ b/src/renderer/src/i18n/locales/ja.json @@ -10703,14 +10703,18 @@ }, "WindowsFirewallNotice": { "repair-success": "Windows Firewall now allows Orca Mobile on private networks", - "repair-failed": "Could not add the Windows Firewall rule", + "repair-failed": "Could not update the Windows Firewall rules", "public-title": "Windows marks this network as public", "missing-title": "Allow phone connections through Windows Firewall", "public-description": "Change this trusted Wi-Fi network to Private before allowing Orca Mobile connections.", "missing-description": "Windows may block the pairing server. Add a rule for this Orca app and TCP port {{port}} on Private networks.", "open-settings": "Open network settings", "waiting": "Waiting for Windows…", - "allow": "Allow phone connections" + "allow": "Allow phone connections", + "repair-unverified": "Windows Firewall access could not be verified", + "blocked-title": "Windows may be blocking Orca Mobile", + "blocked-description": "An existing inbound Block rule can override the pairing exception. Repair removes conflicting TCP rules for this Orca app, then allows port {{port}} on Private networks.", + "repair": "Repair firewall access" } }, "gitlab": { diff --git a/src/renderer/src/i18n/locales/ko.json b/src/renderer/src/i18n/locales/ko.json index 0ad69da4c06..28ec3f79a94 100644 --- a/src/renderer/src/i18n/locales/ko.json +++ b/src/renderer/src/i18n/locales/ko.json @@ -10703,14 +10703,18 @@ }, "WindowsFirewallNotice": { "repair-success": "Windows Firewall now allows Orca Mobile on private networks", - "repair-failed": "Could not add the Windows Firewall rule", + "repair-failed": "Could not update the Windows Firewall rules", "public-title": "Windows marks this network as public", "missing-title": "Allow phone connections through Windows Firewall", "public-description": "Change this trusted Wi-Fi network to Private before allowing Orca Mobile connections.", "missing-description": "Windows may block the pairing server. Add a rule for this Orca app and TCP port {{port}} on Private networks.", "open-settings": "Open network settings", "waiting": "Waiting for Windows…", - "allow": "Allow phone connections" + "allow": "Allow phone connections", + "repair-unverified": "Windows Firewall access could not be verified", + "blocked-title": "Windows may be blocking Orca Mobile", + "blocked-description": "An existing inbound Block rule can override the pairing exception. Repair removes conflicting TCP rules for this Orca app, then allows port {{port}} on Private networks.", + "repair": "Repair firewall access" } }, "gitlab": { diff --git a/src/renderer/src/i18n/locales/zh.json b/src/renderer/src/i18n/locales/zh.json index 2a72e96cabf..5044f67be66 100644 --- a/src/renderer/src/i18n/locales/zh.json +++ b/src/renderer/src/i18n/locales/zh.json @@ -10703,14 +10703,18 @@ }, "WindowsFirewallNotice": { "repair-success": "Windows Firewall now allows Orca Mobile on private networks", - "repair-failed": "Could not add the Windows Firewall rule", + "repair-failed": "Could not update the Windows Firewall rules", "public-title": "Windows marks this network as public", "missing-title": "Allow phone connections through Windows Firewall", "public-description": "Change this trusted Wi-Fi network to Private before allowing Orca Mobile connections.", "missing-description": "Windows may block the pairing server. Add a rule for this Orca app and TCP port {{port}} on Private networks.", "open-settings": "Open network settings", "waiting": "Waiting for Windows…", - "allow": "Allow phone connections" + "allow": "Allow phone connections", + "repair-unverified": "Windows Firewall access could not be verified", + "blocked-title": "Windows may be blocking Orca Mobile", + "blocked-description": "An existing inbound Block rule can override the pairing exception. Repair removes conflicting TCP rules for this Orca app, then allows port {{port}} on Private networks.", + "repair": "Repair firewall access" } }, "gitlab": { diff --git a/src/shared/windows-mobile-firewall.ts b/src/shared/windows-mobile-firewall.ts index f6570031723..62f504fff88 100644 --- a/src/shared/windows-mobile-firewall.ts +++ b/src/shared/windows-mobile-firewall.ts @@ -6,6 +6,7 @@ export type WindowsMobileFirewallStatus = supported: true port: number ruleAllowed: boolean + blockingRuleDetected: boolean privateFirewallEnabled: boolean networkCategory: WindowsNetworkCategory inspectionAvailable: boolean From 0302ae86b8487da81ec0667b174a7cb7bb0dcdac Mon Sep 17 00:00:00 2001 From: s546126