From caa115bbe3e9d8dcd5a902e4144b153b3a4f9da1 Mon Sep 17 00:00:00 2001 From: Alireza Ahmadi Date: Thu, 23 May 2024 12:00:13 +0200 Subject: [PATCH] http transmition interoperability with xray links --- frontend/src/plugins/link.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frontend/src/plugins/link.ts b/frontend/src/plugins/link.ts index 940041d..00b91e2 100644 --- a/frontend/src/plugins/link.ts +++ b/frontend/src/plugins/link.ts @@ -140,10 +140,12 @@ export namespace LinkUtil { host: '', path: '', serviceName: '', + type: null, } switch (t.type){ case TrspTypes.HTTP: const th = t + params.type = 'http' params.host = th.host?.join(',')?? null params.path = th.path?? null break @@ -225,6 +227,7 @@ export namespace LinkUtil { host: tParams.host, id: u?.uuid, net: transport?.type?? 'tcp', + type: transport?.type == 'http' ? 'http' : undefined, path: tParams.path, port: inbound.listen_port, ps: inbound.tag,