Merge pull request #2201 from 21pages/fix

fix api server setting error
This commit is contained in:
RustDesk 2022-11-18 12:03:20 +08:00 committed by GitHub
commit 4a8578ee85
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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