diff --git a/flutter/lib/desktop/pages/desktop_setting_page.dart b/flutter/lib/desktop/pages/desktop_setting_page.dart index b4c69a6a6..c03371a64 100644 --- a/flutter/lib/desktop/pages/desktop_setting_page.dart +++ b/flutter/lib/desktop/pages/desktop_setting_page.dart @@ -864,7 +864,7 @@ class _NetworkState extends State<_Network> with AutomaticKeepAliveClientMixin { } } if (apiServer.isNotEmpty) { - if (!apiServer.startsWith('http://') || + if (!apiServer.startsWith('http://') && !apiServer.startsWith('https://')) { apiErrMsg.value = '${translate("API Server")}: ${translate("invalid_http")}';