http transmition interoperability with xray links
This commit is contained in:
@@ -140,10 +140,12 @@ export namespace LinkUtil {
|
|||||||
host: <string|null>'',
|
host: <string|null>'',
|
||||||
path: <string|null>'',
|
path: <string|null>'',
|
||||||
serviceName: <string|null>'',
|
serviceName: <string|null>'',
|
||||||
|
type: <string|null>null,
|
||||||
}
|
}
|
||||||
switch (t.type){
|
switch (t.type){
|
||||||
case TrspTypes.HTTP:
|
case TrspTypes.HTTP:
|
||||||
const th = <HTTP>t
|
const th = <HTTP>t
|
||||||
|
params.type = 'http'
|
||||||
params.host = th.host?.join(',')?? null
|
params.host = th.host?.join(',')?? null
|
||||||
params.path = th.path?? null
|
params.path = th.path?? null
|
||||||
break
|
break
|
||||||
@@ -225,6 +227,7 @@ export namespace LinkUtil {
|
|||||||
host: tParams.host,
|
host: tParams.host,
|
||||||
id: u?.uuid,
|
id: u?.uuid,
|
||||||
net: transport?.type?? 'tcp',
|
net: transport?.type?? 'tcp',
|
||||||
|
type: transport?.type == 'http' ? 'http' : undefined,
|
||||||
path: tParams.path,
|
path: tParams.path,
|
||||||
port: inbound.listen_port,
|
port: inbound.listen_port,
|
||||||
ps: inbound.tag,
|
ps: inbound.tag,
|
||||||
|
|||||||
Reference in New Issue
Block a user