Skip to content

Commit

Permalink
fix tcp type in links #114
Browse files Browse the repository at this point in the history
  • Loading branch information
alireza0 committed May 14, 2024
1 parent 609132a commit db36756
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions frontend/src/plugins/link.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ export namespace LinkUtil {
const tParams = getTransportParams(transport)

const params = {
type: transport?.type?? 'none',
type: transport?.type?? 'tcp',
security: inbound.tls?.enabled? 'tls' : null,
alpn: inbound.tls?.alpn?.join(',')?? null,
sni: inbound.tls?.server_name?? null,
Expand All @@ -196,7 +196,7 @@ export namespace LinkUtil {
const tParams = getTransportParams(transport)

const params = {
type: transport?.type?? 'none',
type: transport?.type?? 'tcp',
security: inbound.tls?.enabled? 'tls' : null,
alpn: inbound.tls?.alpn?.join(',')?? null,
sni: inbound.tls?.server_name?? null,
Expand Down Expand Up @@ -224,7 +224,7 @@ export namespace LinkUtil {
aid: u?.alterId,
host: tParams.host,
id: u?.uuid,
net: transport.type,
net: transport?.type?? 'tcp',
path: tParams.path,
port: inbound.listen_port,
ps: inbound.tag,
Expand Down

0 comments on commit db36756

Please sign in to comment.