fix api server setting error

Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
21pages 2022-11-18 11:56:32 +08:00
parent 0a2627f06a
commit 931ebc86bc

View File

@ -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")}';