Skip to content

Commit

Permalink
feat(getLoonNodes): trojan support tfo and upd params
Browse files Browse the repository at this point in the history
  • Loading branch information
DreamyTZK committed Dec 9, 2023
1 parent b248447 commit c70581a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/utils/loon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,14 @@ export const getLoonNodes = function (
}
}

if (nodeConfig.tfo) {
config.push('fast-open=true')
}

if (nodeConfig.udpRelay) {
config.push('udp=true')
}

return config.join(',')
}

Expand Down

0 comments on commit c70581a

Please sign in to comment.