惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

博客园 - 【当耐特】
小众软件
小众软件
S
SegmentFault 最新的问题
GbyAI
GbyAI
量子位
爱范儿
爱范儿
L
LangChain Blog
Vercel News
Vercel News
A
About on SuperTechFans
腾讯CDC
博客园_首页
酷 壳 – CoolShell
酷 壳 – CoolShell
月光博客
月光博客
博客园 - 聂微东
Stack Overflow Blog
Stack Overflow Blog
H
Help Net Security
U
Unit 42
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
V
V2EX
V
Visual Studio Blog
美团技术团队
D
DataBreaches.Net
The GitHub Blog
The GitHub Blog
N
Netflix TechBlog - Medium

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
fix(android): require loopback cleartext gateways · openc...
vincentkoc · 2026-04-24 · via Recent Commits to openclaw:main

@@ -99,18 +99,9 @@ class GatewayConfigResolverTest {

9999

}

100100101101

@Test

102-

fun parseGatewayEndpointAllowsPrivateLanCleartextWsUrls() {

102+

fun parseGatewayEndpointRejectsPrivateLanCleartextWsUrls() {

103103

val parsed = parseGatewayEndpoint("ws://192.168.1.20:18789")

104-105-

assertEquals(

106-

GatewayEndpointConfig(

107-

host = "192.168.1.20",

108-

port = 18789,

109-

tls = false,

110-

displayUrl = "http://192.168.1.20:18789",

111-

),

112-

parsed,

113-

)

104+

assertNull(parsed)

114105

}

115106116107

@Test

@@ -155,13 +146,9 @@ class GatewayConfigResolverTest {

155146

}

156147157148

@Test

158-

fun parseGatewayEndpointAllowsLinkLocalIpv6ZoneCleartextWsUrls() {

149+

fun parseGatewayEndpointRejectsLinkLocalIpv6ZoneCleartextWsUrls() {

159150

val parsed = parseGatewayEndpoint("ws://[fe80::1%25eth0]")

160-161-

assertEquals("fe80::1%25eth0", parsed?.host)

162-

assertEquals(18789, parsed?.port)

163-

assertEquals(false, parsed?.tls)

164-

assertEquals("http://[fe80::1%25eth0]:18789", parsed?.displayUrl)

151+

assertNull(parsed)

165152

}

166153167154

@Test

@@ -282,19 +269,10 @@ class GatewayConfigResolverTest {

282269

}

283270284271

@Test

285-

fun parseGatewayEndpointResultAcceptsLanCleartextGateway() {

272+

fun parseGatewayEndpointResultFlagsInsecureLanCleartextGateway() {

286273

val parsed = parseGatewayEndpointResult("ws://192.168.1.20:18789")

287-288-

assertEquals(

289-

GatewayEndpointConfig(

290-

host = "192.168.1.20",

291-

port = 18789,

292-

tls = false,

293-

displayUrl = "http://192.168.1.20:18789",

294-

),

295-

parsed.config,

296-

)

297-

assertNull(parsed.error)

274+

assertNull(parsed.config)

275+

assertEquals(GatewayEndpointValidationError.INSECURE_REMOTE_URL, parsed.error)

298276

}

299277300278

@Test

@@ -435,7 +413,7 @@ class GatewayConfigResolverTest {

435413

}

436414437415

@Test

438-

fun resolveGatewayConnectConfigAllowsPrivateLanManualCleartextEndpoint() {

416+

fun resolveGatewayConnectConfigRejectsPrivateLanManualCleartextEndpoint() {

439417

val resolved =

440418

resolveGatewayConnectConfig(

441419

useSetupCode = false,

@@ -451,9 +429,7 @@ class GatewayConfigResolverTest {

451429

fallbackPassword = "",

452430

)

453431454-

assertEquals("192.168.31.100", resolved?.host)

455-

assertEquals(18789, resolved?.port)

456-

assertEquals(false, resolved?.tls)

432+

assertNull(resolved)

457433

}

458434459435

@Test