diff --git a/frontend/src/models/dbinbound.ts b/frontend/src/models/dbinbound.ts index 81eecbdb5..bdfa52195 100644 --- a/frontend/src/models/dbinbound.ts +++ b/frontend/src/models/dbinbound.ts @@ -163,6 +163,10 @@ export class DBInbound { return this.protocol === Protocols.WIREGUARD; } + get isAmneziawg() { + return this.protocol === Protocols.AMNEZIAWG; + } + get isHysteria() { return this.protocol === Protocols.HYSTERIA; } diff --git a/frontend/src/pages/clients/ClientsPage.tsx b/frontend/src/pages/clients/ClientsPage.tsx index 75b6baac4..84fbc1c9e 100644 --- a/frontend/src/pages/clients/ClientsPage.tsx +++ b/frontend/src/pages/clients/ClientsPage.tsx @@ -142,6 +142,7 @@ const INBOUND_PROTOCOL_COLORS: Record = { hysteria: 'cyan', hysteria2: 'green', wireguard: 'gold', + amneziawg: 'yellow', http: 'purple', mixed: 'lime', tunnel: 'orange', diff --git a/frontend/src/pages/hosts/HostList.tsx b/frontend/src/pages/hosts/HostList.tsx index 88d2524e9..e016bfcfa 100644 --- a/frontend/src/pages/hosts/HostList.tsx +++ b/frontend/src/pages/hosts/HostList.tsx @@ -39,6 +39,7 @@ const INBOUND_PROTOCOL_COLORS: Record = { hysteria: 'cyan', hysteria2: 'green', wireguard: 'gold', + amneziawg: 'yellow', http: 'purple', mixed: 'lime', tunnel: 'orange', diff --git a/frontend/src/pages/inbounds/list/types.ts b/frontend/src/pages/inbounds/list/types.ts index b623e8b22..1ca44c370 100644 --- a/frontend/src/pages/inbounds/list/types.ts +++ b/frontend/src/pages/inbounds/list/types.ts @@ -15,6 +15,7 @@ export type ProtocolFlags = { isMixed?: boolean; isHTTP?: boolean; isWireguard?: boolean; + isAmneziawg?: boolean; isTunnel?: boolean; }; diff --git a/frontend/src/pages/inbounds/list/useInboundColumns.tsx b/frontend/src/pages/inbounds/list/useInboundColumns.tsx index 43fd3b94f..ddbc47f80 100644 --- a/frontend/src/pages/inbounds/list/useInboundColumns.tsx +++ b/frontend/src/pages/inbounds/list/useInboundColumns.tsx @@ -199,7 +199,7 @@ export function useInboundColumns({ sorter: (a, b) => compareText(a.protocol, b.protocol), render: (_, record) => { const tags: ReactElement[] = [{record.protocol}]; - if (record.isWireguard || record.isHysteria) { + if (record.isWireguard || record.isAmneziawg || record.isHysteria) { tags.push(UDP); } else if (record.isSS) { const stream = readStreamHints(record.streamSettings);