Skip to content

Commit 7fe126b

Browse files
committed
archive proxy
1 parent 4a6bfa4 commit 7fe126b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/src/network/eh_request.dart

+4-1
Original file line numberDiff line numberDiff line change
@@ -237,9 +237,12 @@ emyPxgcYxn/eR44/KJ4EBs+lVDR3veyJm+kXQ99b21/+jh5Xos1AnX5iItreGCc=
237237
};
238238
}
239239

240-
static ProxyConfig currentProxyConfig() {
240+
static ProxyConfig? currentProxyConfig() {
241241
switch (NetworkSetting.proxyType.value) {
242242
case JProxyType.system:
243+
if (systemProxyAddress.trim().isEmpty) {
244+
return null;
245+
}
243246
return ProxyConfig(
244247
type: ProxyType.http,
245248
address: systemProxyAddress,

0 commit comments

Comments
 (0)