mirror of
https://github.com/weyne85/rustdesk.git
synced 2025-10-29 17:00:05 +00:00
fix: test if valid server, control if try test with proxy (#7858)
* fix: test if valid server, control if try test with proxy Signed-off-by: fufesou <shuanglongchen@yeah.net> * fix: build Signed-off-by: fufesou <shuanglongchen@yeah.net> --------- Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
@@ -2079,7 +2079,12 @@ void changeSocks5Proxy() async {
|
||||
password = pwdController.text.trim();
|
||||
|
||||
if (proxy.isNotEmpty) {
|
||||
proxyMsg = translate(await bind.mainTestIfValidServer(server: proxy));
|
||||
String domainPort = proxy;
|
||||
if (domainPort.contains('://')) {
|
||||
domainPort = domainPort.split('://')[1];
|
||||
}
|
||||
proxyMsg = translate(await bind.mainTestIfValidServer(
|
||||
server: domainPort, testWithProxy: false));
|
||||
if (proxyMsg.isEmpty) {
|
||||
// ignore
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user