summaryrefslogtreecommitdiff
path: root/src/components
diff options
context:
space:
mode:
authorMatain <[email protected]>2022-11-08 19:51:50 +0800
committerMatain <[email protected]>2022-11-08 19:51:50 +0800
commit4c77ea3e9c0561f3ff99795b15da907aa2b1f263 (patch)
treec2672cb870226be43296e1d0bf26d831cf3977eb /src/components
parent93df78f185efe8d0cb07aa75a8cccd38856bf12a (diff)
proxy udp item shows
Diffstat (limited to 'src/components')
-rw-r--r--src/components/proxies/Proxy.tsx7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/components/proxies/Proxy.tsx b/src/components/proxies/Proxy.tsx
index 27fc1f2..3f5ab39 100644
--- a/src/components/proxies/Proxy.tsx
+++ b/src/components/proxies/Proxy.tsx
@@ -56,7 +56,7 @@ type ProxyProps = {
proxy: any;
latency: any;
isSelectable?: boolean;
- udp?: boolean;
+ udp: boolean;
onClick?: (proxyName: string) => unknown;
};
@@ -65,7 +65,6 @@ function ProxySmallImpl({
name,
proxy,
latency,
- udp,
isSelectable,
onClick,
}: ProxyProps) {
@@ -187,8 +186,8 @@ function ProxyImpl({
</ProxyNameTooltip>
</div>
<div className={s0.row}>
- <span className={s0.proxyType} style={{ opacity: now ? 0.6 : 0.2 }}>
- {formatProxyType(proxy.type)}
+ <span className={s0.proxyType} style={{ opacity: now ? 0.6 : 0.2 }}>
+ {proxy.udp ? formatProxyType(proxy.type)+" udp":formatProxyType(proxy.type)}
</span>
<span className={s0.udpType}>
{formatUdpType(udp)}