The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
chore(config): delete the unused isAllowedCloudRpcUrl
M3gA-Mindffe2ad766bf1
diff --git a/app/src/utils/__tests__/configPersistence.test.ts b/app/src/utils/__tests__/configPersistence.test.tsindex f3e8a29c5f..c5e1ef361d 100644--- a/app/src/utils/__tests__/configPersistence.test.ts+++ b/app/src/utils/__tests__/configPersistence.test.ts@@ -12,7 +12,6 @@ import {getStoredCoreMode,getStoredCoreToken,getStoredRpcUrl,- isAllowedCloudRpcUrl,isLocalOrPrivateNetworkHost,isValidRpcUrl,normalizeRpcUrl,@@ -268,23 +267,6 @@ describe('configPersistence', () => {});});- describe('isAllowedCloudRpcUrl', () => {- it('allows HTTPS cloud URLs on public hosts', () => {- expect(isAllowedCloudRpcUrl('https://core.example.com/rpc')).toBe(true);- });-- it('allows HTTP only for local and private-network core URLs', () => {- expect(isAllowedCloudRpcUrl('http://127.0.0.1:7788/rpc')).toBe(true);- expect(isAllowedCloudRpcUrl('http://192.168.1.100:7788/rpc')).toBe(true);- expect(isAllowedCloudRpcUrl('http://100.116.244.64:7788/rpc')).toBe(true);- });-- it('rejects public HTTP cloud URLs', () => {- expect(isAllowedCloudRpcUrl('http://core.example.com/rpc')).toBe(false);- expect(isAllowedCloudRpcUrl('http://8.8.8.8:7788/rpc')).toBe(false);- });- });-describe('normalizeRpcUrl — edge cases', () => {it('adds /rpc suffix when given a core base URL', () => {expect(normalizeRpcUrl('http://127.0.0.1:7788')).toBe('http://127.0.0.1:7788/rpc');diff --git a/app/src/utils/configPersistence.ts b/app/src/utils/configPersistence.tsindex c9a4a22236..36b45b41ce 100644--- a/app/src/utils/configPersistence.ts+++ b/app/src/utils/configPersistence.ts@@ -181,19 +181,6 @@ export function isLocalOrPrivateNetworkHost(hostname: string): boolean {);}-/**- * Cloud cores may use HTTPS on any host. Plain HTTP is accepted only for- * localhost/private networks, including tailnets, to avoid encouraging- * bearer-token transport over public plaintext links.- */-export function isAllowedCloudRpcUrl(url: string): boolean {- if (!isValidRpcUrl(url)) return false;-- const parsed = new URL(url.trim());- if (parsed.protocol === 'https:') return true;- return parsed.protocol === 'http:' && isLocalOrPrivateNetworkHost(parsed.hostname);-}-/*** Normalize an RPC URL by trimming whitespace and trailing slashes.* When the user provides a core base URL with no path, treat it as the