diff --git a/lib/core/config/app_config.dart b/lib/core/config/app_config.dart index 056754a..122da27 100644 --- a/lib/core/config/app_config.dart +++ b/lib/core/config/app_config.dart @@ -13,7 +13,7 @@ class AppConfig { /// /// 这个地址跟着电脑所在的网络走,换网络后要用 /// `ipconfig getifaddr en0` 重新确认。默认值只改这一行。 - static const String devHostBaseUrl = 'http://10.157.242.1:8081'; + static const String devHostBaseUrl = 'http://192.168.31.187:8081'; static const String _loopbackBaseUrl = 'http://127.0.0.1:8081'; diff --git a/test/config/server_endpoint_test.dart b/test/config/server_endpoint_test.dart index 2918105..7d97b77 100644 --- a/test/config/server_endpoint_test.dart +++ b/test/config/server_endpoint_test.dart @@ -57,7 +57,7 @@ void main() { }); test('should_use_the_configured_lan_address_for_device_default', () { - expect(AppConfig.devHostBaseUrl, 'http://10.157.242.1:8081'); + expect(AppConfig.devHostBaseUrl, 'http://192.168.31.187:8081'); }); test('should_apply_stored_url_only_when_debug_is_enabled', () async {