summaryrefslogtreecommitdiff
path: root/src/components
diff options
context:
space:
mode:
authorHaishan <[email protected]>2020-06-18 20:50:59 +0800
committerHaishan <[email protected]>2020-06-18 20:50:59 +0800
commitf1d0714f19afd2cc74f445b214fb8327d75ee037 (patch)
tree690cd1fa09241b76fa0daf3030a3cfcc0b7004ad /src/components
parenteb28e99f2bb117db22c6cf0396d665db9fe9c3ea (diff)
refactor: make proxy group lowest latency item when sorting by latency
Diffstat (limited to 'src/components')
-rw-r--r--src/components/proxies/ProxyGroup.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/proxies/ProxyGroup.tsx b/src/components/proxies/ProxyGroup.tsx
index 6916619..d19ba72 100644
--- a/src/components/proxies/ProxyGroup.tsx
+++ b/src/components/proxies/ProxyGroup.tsx
@@ -94,7 +94,7 @@ const getSortDelay = (d, proxyInfo) => {
}
const type = proxyInfo && proxyInfo.type;
- if (type && NonProxyTypes.indexOf(type) > -1) return 999998;
+ if (type && NonProxyTypes.indexOf(type) > -1) return -1;
return 999999;
};