fix(config): 开发服务地址改为当前局域网

This commit is contained in:
Zhou Weidong committed 2026-10-23 01:10:59 +08:00
1 parent f3d64f6fb5
commit f206977ad8
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -48,7 +48,7 @@
<key>NSIncludesSubdomains</key>
<true/>
</dict>
<key>192.168.31.187</key>
<key>10.43.47.1</key>
<dict>
<key>NSExceptionAllowsInsecureHTTPLoads</key>
<true/>
+1 -1
View File
@@ -14,7 +14,7 @@ class AppConfig {
/// 开发调试默认服务地址,当前指向本机局域网 IP。
///
/// 换网络时只改这一行,地址不要带结尾斜杠。
static const String devHostBaseUrl = 'http://192.168.31.187:8081';
static const String devHostBaseUrl = 'http://10.43.47.1:8081';
/// 本机后端地址:通过 `adb reverse tcp:8081 tcp:8081` 映射到开发机,
/// 探测可达时 App 直连本机服务;不可达时回落到公网地址。
+1 -1
View File
@@ -63,7 +63,7 @@ void main() {
});
test('should_use_the_configured_local_address_for_device_default', () {
expect(AppConfig.devHostBaseUrl, 'http://192.168.31.187:8081');
expect(AppConfig.devHostBaseUrl, 'http://10.43.47.1:8081');
});
test('should_skip_probe_when_compiled_override_is_set', () async {