fix(android): keep LAN cleartext untrusted · openclaw/openclaw@5f3d6cd
obviyus
·
2026-05-28
·
via Recent Commits to openclaw:main
File tree
apps/android/app/src/main/java/ai/openclaw/app/gateway
| Original file line number | Diff line number | Diff line change |
|---|
@@ -632,7 +632,7 @@ class GatewaySession(
|
632 | 632 | |
633 | 633 | private fun shouldPersistBootstrapHandoffTokens(authSource: GatewayConnectAuthSource): Boolean { |
634 | 634 | if (authSource != GatewayConnectAuthSource.BOOTSTRAP_TOKEN) return false |
635 | | -if (isLocalCleartextGatewayHost(endpoint.host)) return true |
| 635 | +if (isLoopbackGatewayHost(endpoint.host)) return true |
636 | 636 | return tls != null |
637 | 637 | } |
638 | 638 | |
@@ -1212,7 +1212,9 @@ class GatewaySession(
|
1212 | 1212 | endpoint: GatewayEndpoint, |
1213 | 1213 | tls: GatewayTlsParams?, |
1214 | 1214 | ): Boolean { |
1215 | | -if (isLocalCleartextGatewayHost(endpoint.host)) return true |
| 1215 | +if (isLoopbackGatewayHost(endpoint.host)) { |
| 1216 | +return true |
| 1217 | + } |
1216 | 1218 | return tls?.expectedFingerprint?.trim()?.isNotEmpty() == true |
1217 | 1219 | } |
1218 | 1220 | } |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。