external proxy support authentication (#303)

This commit is contained in:
wanghongenpin
2024-09-11 23:42:04 +08:00
parent 3f36f132f5
commit 5979bd5c7e
22 changed files with 239 additions and 82 deletions

View File

@@ -294,7 +294,6 @@ class LinuxSystemProxy extends SystemProxy {
return Future.wait([hostFuture, portFuture]).then((value) {
var host = Strings.trimWrap(value[0], "'");
var port = Strings.trimWrap(value[1], "'");
print("$host:$port");
if (host.isNotEmpty && port.isNotEmpty) {
return ProxyInfo.of(host, int.parse(port));
}