mirror of
https://github.com/rustdesk/rustdesk
synced 2026-05-23 00:49:04 +00:00
fix api server setting error
Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
parent
0a2627f06a
commit
931ebc86bc
1 changed files with 1 additions and 1 deletions
|
|
@ -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")}';
|
||||
|
|
|
|||
Loading…
Reference in a new issue